summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgps_core.c2
-rw-r--r--test/clientlib/oldstyle.log.chk2
2 files changed, 2 insertions, 2 deletions
diff --git a/libgps_core.c b/libgps_core.c
index 67d731e8..8890307f 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -138,7 +138,7 @@ static void libgps_dump_state(struct gps_data_t *collect, time_t now)
collect->status, status_values[collect->status]);
if (collect->set & MODE_SET)
(void)fprintf(debugfp, "MODE: mode: %d (%s)\n",
- collect->set, mode_values[collect->fix.mode]);
+ collect->fix.mode, mode_values[collect->fix.mode]);
if (collect->set & DOP_SET)
(void)fprintf(debugfp, "DOP: satellites %d, pdop=%lf, hdop=%lf, vdop=%lf\n",
collect->satellites_used,
diff --git a/test/clientlib/oldstyle.log.chk b/test/clientlib/oldstyle.log.chk
index 69546bd3..7d1318a9 100644
--- a/test/clientlib/oldstyle.log.chk
+++ b/test/clientlib/oldstyle.log.chk
@@ -6,4 +6,4 @@ SPEED: 24.899000
TRACK: track: 70.890000
CLIMB: climb: 0.000000
STATUS: status: 1 (FIX)
-MODE: mode: 537598 (MODE_3D)
+MODE: mode: 3 (MODE_3D)