wrap os.pullEventRaw to have return types
This commit is contained in:
@@ -25,7 +25,7 @@ local imatrix_rtu = require("rtu.dev.imatrix_rtu")
|
||||
local turbine_rtu = require("rtu.dev.turbine_rtu")
|
||||
local turbinev_rtu = require("rtu.dev.turbinev_rtu")
|
||||
|
||||
local RTU_VERSION = "beta-v0.7.9"
|
||||
local RTU_VERSION = "beta-v0.7.10"
|
||||
|
||||
local rtu_t = types.rtu_t
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user