fix: sort functions

This commit is contained in:
2025-05-06 20:25:45 -03:00
parent a8c673abf5
commit 6fb01064cd
+5 -13
View File
@@ -199,15 +199,7 @@ end
registerEventListener("key", scrollLogs)
--[[
main
]]
log.general("tutel host init")
-- transmit scan
-- log.info("broadcasting SCAN")
--[[
screen drawing
main loop functinos
]]
function updateScreen()
local w, h = term.getSize()
@@ -270,9 +262,6 @@ function updateScreen()
drawLogs(2, h - 1)
end
--[[
event polling
]]
function pollEvents()
local eventData = { os.pullEvent() }
@@ -283,9 +272,12 @@ function pollEvents()
end
--[[
main loop
main
]]
log.general("tutel host init")
log.info("broadcasting SCAN")
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
while true do
updateScreen()
pollEvents()