mirror of
https://github.com/osmarks/random-stuff
synced 2026-04-14 11:11:24 +00:00
Merge branch 'master' of https://github.com/osmarks/random-stuff
This commit is contained in:
@@ -139,7 +139,7 @@ while true do
|
||||
if p1 and p2 then
|
||||
local pos = narrow(p1, p2, fixes[4])
|
||||
if channel == gps.CHANNEL_GPS then
|
||||
write_to("gps", timestamp(), ("%d: %.0f %.0f %.0f"):format(reply_channel, pos.x, pos.y, pos.z))
|
||||
if message == "PING" then write_to("gps", timestamp(), ("%d: %.0f %.0f %.0f"):format(reply_channel, pos.x, pos.y, pos.z)) end
|
||||
elseif channel == 999 then
|
||||
local status, label = "?", "?"
|
||||
if type(message) == "table" then status = tostring(message.status) label = tostring(message.label) end
|
||||
@@ -151,4 +151,7 @@ while true do
|
||||
fixes = {}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user