summaryrefslogtreecommitdiff
path: root/run.lua
blob: 60d1e07e67ec5fb7802a42ed396d2b151e48c0ba (plain)
1
2
3
4
5
6
7
8
9
10
11
local wakeup = require("wakeup")

return function ()
	tmr.create():alarm(
		1000,
		tmr.ALARM_AUTO,
		function (timer)
			wakeup:step(timer)
			collectgarbage()
		end)
end