[gps_ubx] fix watchdog timings for gps_ubx

main-solar-only
Richard Meadows 2016-07-30 13:57:40 +01:00
rodzic dd4e6c8076
commit 82e771271c
2 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -147,7 +147,9 @@ struct tracker_datapoint* collect_data(void)
* ---- GPS UBX ----
*/
/* wait for GPS, if it takes forever the watchdog will save us */
kick_the_watchdog();
while (gps_update_time_pending() || gps_update_position_pending());
kick_the_watchdog();
if (gps_get_error_state() != GPS_NOERROR) {
/* Error updating GPS position */

Wyświetl plik

@ -670,6 +670,8 @@ void gps_init(void)
kick_the_watchdog();
for (int i = 0; i < 100*1000; i++) { kick_the_watchdog(); }
/* Set the platform model */
gps_set_platform_model();