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) registerEventListener("key", scrollLogs)
--[[ --[[
main main loop functinos
]]
log.general("tutel host init")
-- transmit scan
-- log.info("broadcasting SCAN")
--[[
screen drawing
]] ]]
function updateScreen() function updateScreen()
local w, h = term.getSize() local w, h = term.getSize()
@@ -270,9 +262,6 @@ function updateScreen()
drawLogs(2, h - 1) drawLogs(2, h - 1)
end end
--[[
event polling
]]
function pollEvents() function pollEvents()
local eventData = { os.pullEvent() } local eventData = { os.pullEvent() }
@@ -283,9 +272,12 @@ function pollEvents()
end end
--[[ --[[
main loop main
]] ]]
log.general("tutel host init")
log.info("broadcasting SCAN")
sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL }) sendToAll("SCAN", { ["hostChannel"] = HOST_CHANNEL })
while true do while true do
updateScreen() updateScreen()
pollEvents() pollEvents()