1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-20 02:07:39 +00:00

http fixes

This commit is contained in:
kepler155c@gmail.com
2017-10-08 20:03:01 -04:00
parent a625b52bad
commit 955f11042b
4 changed files with 66 additions and 48 deletions

View File

@@ -111,7 +111,6 @@ device.wireless_modem.open(999)
print('discovery: listening on port 999')
Event.on('modem_message', function(e, s, sport, id, info, distance)
debug(info)
if sport == 999 and tonumber(id) and type(info) == 'table' then
if not network[id] then
network[id] = { }
@@ -151,7 +150,6 @@ end
-- every 10 seconds, send out this computer's info
Event.onInterval(10, function()
debug('timer')
sendInfo()
for _,c in pairs(_G.network) do
local elapsed = os.clock()-c.timestamp