From 8cb5c942fe05cc6b0febf0b582177c5950088604 Mon Sep 17 00:00:00 2001 From: Konstantin Sharlaimov Date: Mon, 29 Aug 2016 15:19:30 +0300 Subject: [PATCH] Fix a bug with incorrect logic in pre-init GPS delay (#523) --- src/main/io/gps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/io/gps.c b/src/main/io/gps.c index 40924a549..86bacf27d 100755 --- a/src/main/io/gps.c +++ b/src/main/io/gps.c @@ -279,7 +279,7 @@ uint16_t gpsConstrainHDOP(uint32_t hdop) void gpsThread(void) { /* Extra delay for at least 2 seconds after booting to give GPS time to initialise */ - if (isMPUSoftReset() && (millis() < GPS_BOOT_DELAY)) { + if (!isMPUSoftReset() && (millis() < GPS_BOOT_DELAY)) { sensorsClear(SENSOR_GPS); DISABLE_STATE(GPS_FIX); return; -- 2.11.4.GIT