fix: wrong function usage

This commit is contained in:
2025-05-06 19:11:39 -03:00
parent 7b9b8582d4
commit 901ce4cf2b
+6 -3
View File
@@ -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()