diff options
Diffstat (limited to 'run.lua')
-rw-r--r-- | run.lua | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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 |