fix: sort functions
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user