1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

Merged in mindnever/librepilot/LP-545_ubx_null_ptr_dereference_fix (pull request #513)

LP-545 ubx null ptr dereference fix

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
This commit is contained in:
Vladimir Zidar 2018-09-29 09:57:13 +00:00 committed by Lalanne Laurent
commit 07871ca19f

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