Update gps.lua

This commit is contained in:
Ale32bit 2015-10-09 17:27:13 +02:00
parent 86f15b020c
commit 09a3843b85

View file

@ -2,4 +2,8 @@ local x, y, z = gps.locate(0)
if not x then if not x then
x, y, z = "?", "?", "?" x, y, z = "?", "?", "?"
end end
if tonumber(x) then
sPhone.winOk("X Y Z", math.ceil(x).." "..math.ceil(y).." "..math.ceil(z)) sPhone.winOk("X Y Z", math.ceil(x).." "..math.ceil(y).." "..math.ceil(z))
else
sPhone.winOk("X Y Z","? ? ?")
end