sPhone/src/apps/gps.lua
2015-09-16 15:39:44 +02:00

5 lines
148 B
Lua

local x, y, z = gps.locate(0)
if not x then
x, y, z = "?", "?", "?"
end
sPhone.winOk("X Y Z", math.ceil(x).." "..math.ceil(y).." "..math.ceil(z))