diff --git a/drone.lua b/drone.lua index e0b8e0d..7a5a01c 100644 --- a/drone.lua +++ b/drone.lua @@ -7,13 +7,14 @@ local d = component.proxy(component.list("drone")()) local t = component.proxy(component.list("modem")()) local eeprom = component.proxy(component.list("eeprom")()) local interweb = component.proxy(component.list("internet")()) +local event = require("event") local fwaddress = "https://raw.githubusercontent.com/DremOSDeveloperTeam/opencomputers-drone/master/drone.lua" local commport = 6500 t.open(6500) while true do - local evt,_,sender,port,_,name,cmd,a,b,c = computer.pullSignal() + local evt,_,sender,port,_,name,cmd,a,b,c = event.pull("modem_message") if evt == "modem_message" and name == d.name() then if cmd == "gfw" then -- Get Firmware Version t.broadcast(commport, fwv)