mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
OP-1370 - Fix sensortype not shown for non PVT GPSs
This commit is contained in:
parent
5a3ea5fde0
commit
1d3f9399c3
@ -380,7 +380,6 @@ static void parse_ubx_nav_pvt(struct UBXPacket *ubx, GPSPositionSensorData *GpsP
|
||||
GPSTimeSet(&GpsTime);
|
||||
}
|
||||
#endif
|
||||
GpsPosition->SensorType = sensorType;
|
||||
}
|
||||
|
||||
#if !defined(PIOS_GPS_MINIMAL)
|
||||
@ -528,6 +527,8 @@ uint32_t parse_ubx_message(struct UBXPacket *ubx, GPSPositionSensorData *GpsPosi
|
||||
}
|
||||
}
|
||||
|
||||
GpsPosition->SensorType = sensorType;
|
||||
|
||||
if (msgtracker.msg_received == ALL_RECEIVED) {
|
||||
GPSPositionSensorSet(GpsPosition);
|
||||
msgtracker.msg_received = NONE_RECEIVED;
|
||||
|
Loading…
Reference in New Issue
Block a user