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:
parent
a4c0bcfb1a
commit
3ba6fea710
@ -243,8 +243,10 @@ void gps_ubx_reset_sensor_type()
|
|||||||
ubxSensorType = GPSPOSITIONSENSOR_SENSORTYPE_UNKNOWN;
|
ubxSensorType = GPSPOSITIONSENSOR_SENSORTYPE_UNKNOWN;
|
||||||
GPSPositionSensorSensorTypeSet(&ubxSensorType);
|
GPSPositionSensorSensorTypeSet(&ubxSensorType);
|
||||||
// make the sensor type / autobaud code time out immediately to send the request immediately
|
// make the sensor type / autobaud code time out immediately to send the request immediately
|
||||||
|
if (status) {
|
||||||
status->lastStepTimestampRaw += 0x8000000UL;
|
status->lastStepTimestampRaw += 0x8000000UL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
--mutex;
|
--mutex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user