fix: wrong function usage
This commit is contained in:
@@ -191,17 +191,20 @@ local function handleMessages(side, channel, replyChannel, message, dist)
|
|||||||
log.error("error occurred while executing command %s: %s", message.name, err)
|
log.error("error occurred while executing command %s: %s", message.name, err)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
declareCommandHandler("modem_message", handleMessages)
|
registerEventListener("modem_message", handleMessages)
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
main
|
main
|
||||||
]]
|
]]
|
||||||
|
|
||||||
log.general("tutel host init")
|
log.general("tutel host init")
|
||||||
|
|
||||||
-- transmit scan
|
-- transmit scan
|
||||||
|
log.info("broadcasting SCAN")
|
||||||
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
|
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
|
||||||
log.info("broadcasted scan message")
|
|
||||||
|
|
||||||
|
--[[
|
||||||
|
loop functions
|
||||||
|
]]
|
||||||
function updateScreen()
|
function updateScreen()
|
||||||
local w, h = term.getSize()
|
local w, h = term.getSize()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user