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