Update drone.lua
This commit is contained in:
parent
4931983d44
commit
cfdd0e36cd
|
@ -7,14 +7,13 @@ local d = component.proxy(component.list("drone")())
|
||||||
local t = component.proxy(component.list("modem")())
|
local t = component.proxy(component.list("modem")())
|
||||||
local eeprom = component.proxy(component.list("eeprom")())
|
local eeprom = component.proxy(component.list("eeprom")())
|
||||||
local interweb = component.proxy(component.list("internet")())
|
local interweb = component.proxy(component.list("internet")())
|
||||||
local event = require("event")
|
|
||||||
local fwaddress = "https://raw.githubusercontent.com/DremOSDeveloperTeam/opencomputers-drone/master/drone.lua"
|
local fwaddress = "https://raw.githubusercontent.com/DremOSDeveloperTeam/opencomputers-drone/master/drone.lua"
|
||||||
local commport = 6500
|
local commport = 6500
|
||||||
|
|
||||||
t.open(6500)
|
t.open(6500)
|
||||||
|
|
||||||
while true do
|
while true do
|
||||||
local evt,_,sender,port,_,name,cmd,a,b,c = event.pull("modem_message")
|
local evt,_,sender,port,_,name,cmd,a,b,c = computer.pullSignal()
|
||||||
if evt == "modem_message" and name == d.name() then
|
if evt == "modem_message" and name == d.name() then
|
||||||
if cmd == "gfw" then -- Get Firmware Version
|
if cmd == "gfw" then -- Get Firmware Version
|
||||||
t.broadcast(commport, fwv)
|
t.broadcast(commport, fwv)
|
||||||
|
|
Loading…
Reference in a new issue