From ebb09d04809875379eba9e4351a051bece88f256 Mon Sep 17 00:00:00 2001 From: Rick Sellens Date: Wed, 29 Jan 2020 13:23:02 -0500 Subject: [PATCH] clang --- src/NMEA_parse.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NMEA_parse.cpp b/src/NMEA_parse.cpp index 61d572a..822fc57 100644 --- a/src/NMEA_parse.cpp +++ b/src/NMEA_parse.cpp @@ -700,9 +700,9 @@ bool Adafruit_GPS::parseCoord(char *pStart, nmea_float_t *angleDegrees, // reject angles that are out of range if (nsew == 'N' || nsew == 'S') - if (abs(deg) > 90) + if (abs(deg) > 90) return false; - if (abs(deg) > 180) + if (abs(deg) > 180) return false; // store in locations passed as args