mirror of
https://github.com/Kiritow/OpenComputerScripts.git
synced 2024-03-22 13:10:46 +08:00
Fix bug in Drone Console
This commit is contained in:
parent
d09c8fd64e
commit
b1c8867f2a
|
@ -17,7 +17,7 @@ modem.broadcast(98,'modem=component.proxy(component.list("modem")())')
|
||||||
print('Done')
|
print('Done')
|
||||||
|
|
||||||
term.clear()
|
term.clear()
|
||||||
print('Drone Debug Console v1.4.1')
|
print('Drone Debug Console v1.4.2')
|
||||||
print('Command Prompt (Ctrl+D to exit)')
|
print('Command Prompt (Ctrl+D to exit)')
|
||||||
|
|
||||||
local last_response=computer.uptime()
|
local last_response=computer.uptime()
|
||||||
|
@ -62,7 +62,7 @@ local listener=AddEventListener("modem_message",function(e)
|
||||||
end)
|
end)
|
||||||
|
|
||||||
local timer=AddTimer(5,function()
|
local timer=AddTimer(5,function()
|
||||||
if(computer.uptime()-last_response>15) then
|
if(computer.uptime()-last_response>10) then
|
||||||
local a,b=term.getCursor()
|
local a,b=term.getCursor()
|
||||||
|
|
||||||
local w,h=term.gpu().getResolution()
|
local w,h=term.gpu().getResolution()
|
||||||
|
@ -75,7 +75,7 @@ local timer=AddTimer(5,function()
|
||||||
term.setCursor(a,b)
|
term.setCursor(a,b)
|
||||||
end
|
end
|
||||||
|
|
||||||
modem.broadcast(98,"execute_command","modem.send(" .. modem.address .. ",99,'console_info',drone.getOffset(),computer.energy())")
|
modem.broadcast(98,"execute_command","modem.send('" .. modem.address .. "',99,'console_info',drone.getOffset(),computer.energy())")
|
||||||
end,-1)
|
end,-1)
|
||||||
|
|
||||||
local history={}
|
local history={}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user