From 8ccc9df0614fd2f3e9ee05cf27df7aaa64388c6d Mon Sep 17 00:00:00 2001 From: Steven Tung Date: Sat, 24 Aug 2019 00:28:08 -0700 Subject: [PATCH] use get_num_float instead of get_num(_int) for the latlong's minute, which is a double. --- library/src/gps_parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/src/gps_parser.c b/library/src/gps_parser.c index 2c4bf06..a79bae3 100644 --- a/library/src/gps_parser.c +++ b/library/src/gps_parser.c @@ -1247,7 +1247,7 @@ static void get_location( char *str, location_t *location, int type ) location->degrees = get_num( tmp ); strcpy( tmp, p_tmp ); - location->minutes = get_num( tmp ); + location->minutes = get_num_float( tmp ); } return; @@ -1741,4 +1741,4 @@ vehicle_status_t gps_ths_status() #ifdef ZDA uint8_t gps_zda_local_hour( void ); uint8_t gps_zda_local_min( void ); -#endif \ No newline at end of file +#endif