gpsread code sanitizations
This commit is contained in:
parent
aa042f6968
commit
1057a25fc4
@ -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
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user