Update drone.lua
This commit is contained in:
parent
37ba442fba
commit
4931983d44
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue