Skip to content

Commit d03d29c

Browse files
authored
Update GPSx9L.lua
1 parent fdbefdd commit d03d29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x7_x9lite/GPSx9L.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ local function background()
215215
gpsDtH = string.format("%.2f",gpsDtH)
216216

217217
--total distance traveled
218-
if (gpsPrevLAT ~= 0) and (gpsPrevLON ~= 0) then
218+
if (gpsPrevLAT ~= 0) and (gpsPrevLON ~= 0) and (gpsLAT ~= 0) and (gpsLON ~= 0)then
219219
--print("GPS_Debug_Prev", gpsPrevLAT,gpsPrevLON)
220220
--print("GPS_Debug_curr", gpsLAT,gpsLON)
221221

0 commit comments

Comments
 (0)