Slightly modified version of the SerialGPS library (https://os.mbed.com/teams/components/code/SerialGPS/) to support the BufferedSerial class

Revision:
5:cc8f9d7f9bdb
Parent:
4:2c76f1ec13a9
diff -r 2c76f1ec13a9 -r cc8f9d7f9bdb SerialGPS.h
--- a/SerialGPS.h	Thu Apr 01 21:18:48 2021 +0200
+++ b/SerialGPS.h	Fri Apr 23 09:38:08 2021 +0200
@@ -57,6 +57,18 @@
         bool fix();
 
         /**
+         * Read one character from the UART interface
+         *
+         * @return ch the character extracted from the UART interface
+         */
+        inline char read_char()
+        {
+            char ch;
+            this->_gps_p->read(&ch, 1);
+            return ch;
+        }
+
+        /**
         * Helper function for converting from Decimal Minutes Seconds (DMS) to Decimal Degrees (DD)
         *
         * @param dms float containing the DMS value
@@ -70,7 +82,7 @@
             float deg = (int) degmin / 100;
             float min = (int) degmin % 100;
 
-            float dd = deg + (min / 60.0) + (sec / 60);
+            float dd = deg + (min / 60.0) + (sec / 3600);
 
             return dd;
         };