From 924058c371140bb42b49ee19964efe267199a97d Mon Sep 17 00:00:00 2001 From: Tony Cabello Date: Sun, 19 Jan 2020 15:45:46 +0100 Subject: [PATCH] renamed AUTO to DYNAMIC --- src/main/cli/settings.c | 2 +- src/main/io/gps.c | 2 +- src/main/io/gps.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/cli/settings.c b/src/main/cli/settings.c index c7e760427..0b5051b94 100644 --- a/src/main/cli/settings.c +++ b/src/main/cli/settings.c @@ -195,7 +195,7 @@ static const char * const lookupTableGPSSBASMode[] = { }; static const char * const lookupTableGPSUBLOXMode[] = { - "AIRBORNE", "PEDESTRIAN", "AUTO" + "AIRBORNE", "PEDESTRIAN", "DYNAMIC" }; #endif diff --git a/src/main/io/gps.c b/src/main/io/gps.c index 045fba615..3627663d0 100644 --- a/src/main/io/gps.c +++ b/src/main/io/gps.c @@ -539,7 +539,7 @@ void gpsUpdate(timeUs_t currentTimeUs) sensorsClear(SENSOR_GPS); gpsSetState(GPS_LOST_COMMUNICATION); } else { - if ((gpsData.messageState == GPS_MESSAGE_STATE_INITIALIZED) && STATE(GPS_FIX) && (gpsConfig()->gps_ublox_mode == UBLOX_AUTO)) { + if ((gpsData.messageState == GPS_MESSAGE_STATE_INITIALIZED) && STATE(GPS_FIX) && (gpsConfig()->gps_ublox_mode == UBLOX_DYNAMIC)) { gpsData.messageState = GPS_MESSAGE_STATE_PEDESTRIAN_TO_AIRBORNE; gpsData.state_position = 0; } diff --git a/src/main/io/gps.h b/src/main/io/gps.h index ee03739ba..cc6e47c72 100644 --- a/src/main/io/gps.h +++ b/src/main/io/gps.h @@ -51,7 +51,7 @@ typedef enum { typedef enum { UBLOX_AIRBORNE = 0, UBLOX_PEDESTRIAN, - UBLOX_AUTO + UBLOX_DYNAMIC } ubloxMode_e; typedef enum {