diff --git a/flight/modules/GPS/ubx_autoconfig.c b/flight/modules/GPS/ubx_autoconfig.c index b1dee67ad..1f692b6d1 100644 --- a/flight/modules/GPS/ubx_autoconfig.c +++ b/flight/modules/GPS/ubx_autoconfig.c @@ -243,7 +243,9 @@ void gps_ubx_reset_sensor_type() ubxSensorType = GPSPOSITIONSENSOR_SENSORTYPE_UNKNOWN; GPSPositionSensorSensorTypeSet(&ubxSensorType); // make the sensor type / autobaud code time out immediately to send the request immediately - status->lastStepTimestampRaw += 0x8000000UL; + if (status) { + status->lastStepTimestampRaw += 0x8000000UL; + } } --mutex; }