diff --git a/src/apps/gps.lua b/src/apps/gps.lua index cc082e7..75abe44 100644 --- a/src/apps/gps.lua +++ b/src/apps/gps.lua @@ -2,4 +2,8 @@ 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)) +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