gpsread code sanitizations

This commit is contained in:
Klaus K Wilting 2020-03-11 23:47:33 +01:00
parent aa042f6968
commit 1057a25fc4
2 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ int gps_config();
bool gps_hasfix(); bool gps_hasfix();
void gps_storelocation(gpsStatus_t *gps_store); void gps_storelocation(gpsStatus_t *gps_store);
void gps_loop(void *pvParameters); void gps_loop(void *pvParameters);
time_t fetch_gpsTime(uint16_t *msec); time_t get_gpstime(uint16_t *msec);
time_t fetch_gpsTime(void); time_t get_gpstime(void);
#endif #endif

View File

@ -92,7 +92,7 @@ bool gps_hasfix() {
} }
// function to fetch current time from struct; note: this is costly // 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; time_t time_sec = 0;
@ -133,11 +133,11 @@ time_t fetch_gpsTime(uint16_t *msec) {
return timeIsValid(time_sec); return timeIsValid(time_sec);
} // fetch_gpsTime() } // get_gpstime()
time_t fetch_gpsTime(void) { time_t get_gpstime(void) {
uint16_t msec; uint16_t msec;
return fetch_gpsTime(&msec); return get_gpstime(&msec);
} }
// GPS serial feed FreeRTos Task // GPS serial feed FreeRTos Task