From 1d3f9399c3ffbe4c1d61deceb8d7ffb8d7e586da Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Fri, 22 Aug 2014 23:35:13 +0200 Subject: [PATCH] OP-1370 - Fix sensortype not shown for non PVT GPSs --- flight/modules/GPS/UBX.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flight/modules/GPS/UBX.c b/flight/modules/GPS/UBX.c index 0761c31b8..6265262eb 100644 --- a/flight/modules/GPS/UBX.c +++ b/flight/modules/GPS/UBX.c @@ -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;