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)
|
||||
end
|
||||
end
|
||||
declareCommandHandler("modem_message", handleMessages)
|
||||
registerEventListener("modem_message", handleMessages)
|
||||
|
||||
--[[
|
||||
main
|
||||
]]
|
||||
|
||||
log.general("tutel host init")
|
||||
|
||||
-- transmit scan
|
||||
log.info("broadcasting SCAN")
|
||||
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
|
||||
log.info("broadcasted scan message")
|
||||
|
||||
--[[
|
||||
loop functions
|
||||
]]
|
||||
function updateScreen()
|
||||
local w, h = term.getSize()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user