1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-26 15:54:15 +01:00

LP-545 ubx null ptr dereference fix

This commit is contained in:
Vladimir Zidar 2018-02-09 12:58:43 +01:00
parent a4c0bcfb1a
commit 3ba6fea710

View File

@ -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;
}