init.lua 283 B

1234567891011121314151617
  1. DEBUG = true
  2. function debug_message(message)
  3. if DEBUG then
  4. print(message)
  5. end
  6. --TODO: rolling last 10
  7. end
  8. if DEBUG then
  9. debug_message('1 second startup delay on timer 0 ...')
  10. tmr.alarm(0, 1000, 0, function()
  11. dofile('main.lua')
  12. end)
  13. else
  14. dofile('main.lua')
  15. end