Skip to content

Commit

Permalink
Update GPSx9.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
moschotto authored Apr 1, 2023
1 parent d03d29c commit 958ff73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x9/GPSx9.lua
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ local function background()
gpsDtH = string.format("%.2f",gpsDtH)

--total distance traveled
if (gpsPrevLAT ~= 0) and (gpsPrevLON ~= 0) then
if (gpsPrevLAT ~= 0) and (gpsPrevLON ~= 0) and (gpsLAT ~= 0) and (gpsLON ~= 0)then
--print("GPS_Debug_Prev", gpsPrevLAT,gpsPrevLON)
--print("GPS_Debug_curr", gpsLAT,gpsLON)

Expand Down

0 comments on commit 958ff73

Please sign in to comment.