From 03d0c4f2da90a18363b3cd0c8d250da2acf89c25 Mon Sep 17 00:00:00 2001 From: Aaron Vance Date: Wed, 27 Jul 2022 22:14:09 +0100 Subject: [PATCH] Fix compiler errors for ESP32 core 2.0.4 --- src/ublox/ubxGPS.cpp | 11 ++++++----- src/ublox/ubxNMEA.cpp | 2 +- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ublox/ubxGPS.cpp b/src/ublox/ubxGPS.cpp index 30c2124..561a250 100644 --- a/src/ublox/ubxGPS.cpp +++ b/src/ublox/ubxGPS.cpp @@ -115,11 +115,11 @@ bool ubloxGPS::rxEnd() //--------------------------------------------------------- -static char toHexDigit( uint8_t val ) -{ - val &= 0x0F; - return (val >= 10) ? ((val - 10) + 'A') : (val + '0'); -} +// static char toHexDigit( uint8_t val ) +// { +// val &= 0x0F; +// return (val >= 10) ? ((val - 10) + 'A') : (val + '0'); +// } //--------------------------------------------------------- @@ -916,6 +916,7 @@ bool ubloxGPS::parseNavPvt( uint8_t chr ) } #endif + return ok; } // parseNavPvt //--------------------------------------------------------- diff --git a/src/ublox/ubxNMEA.cpp b/src/ublox/ubxNMEA.cpp index 4ac3545..d1fb2be 100644 --- a/src/ublox/ubxNMEA.cpp +++ b/src/ublox/ubxNMEA.cpp @@ -28,7 +28,7 @@ bool ubloxNMEA::parseField(char chr) { if (nmeaMessage >= (nmea_msg_t) PUBX_FIRST_MSG) { - switch (nmeaMessage) { + switch ((pubx_msg_t) nmeaMessage) { case PUBX_00: return parsePUBX_00( chr );