diff --git a/sw/airborne/gps_ubx.c b/sw/airborne/gps_ubx.c index 5343f4492a..cc8f63a666 100644 --- a/sw/airborne/gps_ubx.c +++ b/sw/airborne/gps_ubx.c @@ -349,6 +349,8 @@ void parse_ubx( uint8_t c ) { gps_msg_received = TRUE; goto restart; break; + default: + goto error; } return; error: