From 901ce4cf2b54084b112e2d4cf87072203f213a91 Mon Sep 17 00:00:00 2001 From: neru Date: Tue, 6 May 2025 19:11:39 -0300 Subject: [PATCH] fix: wrong function usage --- lua/CC Tweaked/tutel/tutel-host.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index cfeaff2..2ac2c89 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -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()