summaryrefslogtreecommitdiff
path: root/run.lua
diff options
context:
space:
mode:
Diffstat (limited to 'run.lua')
-rw-r--r--run.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/run.lua b/run.lua
index 43f7cad..e5a7627 100644
--- a/run.lua
+++ b/run.lua
@@ -1,6 +1,11 @@
local wakeup = require("wakeup")
return function ()
- wakeup:init()
- tmr.create():alarm(1000, tmr.ALARM_SINGLE, function () wakeup:run() end)
+ tmr.create():alarm(
+ 500,
+ tmr.ALARM_AUTO,
+ function (timer)
+ wakeup:step(timer)
+ collectgarbage()
+ end)
end