From 1057a25fc4e005f0924c8755e2d4f69e03741201 Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Wed, 11 Mar 2020 23:47:33 +0100 Subject: [PATCH] gpsread code sanitizations --- include/gpsread.h | 4 ++-- src/gpsread.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/gpsread.h b/include/gpsread.h index edabf8a4..a3cc7747 100644 --- a/include/gpsread.h +++ b/include/gpsread.h @@ -20,7 +20,7 @@ int gps_config(); bool gps_hasfix(); void gps_storelocation(gpsStatus_t *gps_store); void gps_loop(void *pvParameters); -time_t fetch_gpsTime(uint16_t *msec); -time_t fetch_gpsTime(void); +time_t get_gpstime(uint16_t *msec); +time_t get_gpstime(void); #endif \ No newline at end of file diff --git a/src/gpsread.cpp b/src/gpsread.cpp index 03318284..b1f6db81 100644 --- a/src/gpsread.cpp +++ b/src/gpsread.cpp @@ -92,7 +92,7 @@ bool gps_hasfix() { } // function to fetch current time from struct; note: this is costly -time_t fetch_gpsTime(uint16_t *msec) { +time_t get_gpstime(uint16_t *msec) { time_t time_sec = 0; @@ -133,11 +133,11 @@ time_t fetch_gpsTime(uint16_t *msec) { return timeIsValid(time_sec); -} // fetch_gpsTime() +} // get_gpstime() -time_t fetch_gpsTime(void) { +time_t get_gpstime(void) { uint16_t msec; - return fetch_gpsTime(&msec); + return get_gpstime(&msec); } // GPS serial feed FreeRTos Task