Update gps.lua
This commit is contained in:
parent
86f15b020c
commit
09a3843b85
1 changed files with 5 additions and 1 deletions
|
@ -2,4 +2,8 @@ local x, y, z = gps.locate(0)
|
|||
if not x then
|
||||
x, y, z = "?", "?", "?"
|
||||
end
|
||||
if tonumber(x) then
|
||||
sPhone.winOk("X Y Z", math.ceil(x).." "..math.ceil(y).." "..math.ceil(z))
|
||||
else
|
||||
sPhone.winOk("X Y Z","? ? ?")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue