diff --git a/src/gps.c b/src/gps.c --- a/src/gps.c +++ b/src/gps.c @@ -21,6 +21,13 @@ static uint8_t _gps_verify_checksum(uint // Poll for fix data from the GPS and update the internal structure void gps_update_data(void) { + // Error! + if(!gpson) + { + led_blink(5); + return; + } + // Construct the request to the GPS uint8_t request[8] = {0xB5, 0x62, 0x01, 0x07, 0x00, 0x00, 0xFF, 0xFF};