wrap os.pullEventRaw to have return types

This commit is contained in:
Mikayla Fischler
2022-07-19 15:18:11 -04:00
parent d6a201a45f
commit 1afafba501
9 changed files with 53 additions and 14 deletions

View File

@@ -49,8 +49,7 @@ function threads.thread__main(smem)
-- event loop
while true do
---@diagnostic disable-next-line: undefined-field
local event, param1, param2, param3, param4, param5 = os.pullEventRaw()
local event, param1, param2, param3, param4, param5 = util.pull_event()
if event == "timer" and loop_clock.is_clock(param1) then
-- start next clock timer