From 9a7b283322aa682eeb8aa695c060f10ee95abb76 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 2 Jun 2015 16:50:42 +1000 Subject: [PATCH] AP_GPS: fixed enable of RXM_RAW on uBlox on Pixhawk if version detection was disabled this would never trigger --- libraries/AP_GPS/AP_GPS_UBLOX.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libraries/AP_GPS/AP_GPS_UBLOX.cpp b/libraries/AP_GPS/AP_GPS_UBLOX.cpp index aad5bc14bc..7938645384 100644 --- a/libraries/AP_GPS/AP_GPS_UBLOX.cpp +++ b/libraries/AP_GPS/AP_GPS_UBLOX.cpp @@ -119,14 +119,14 @@ AP_GPS_UBLOX::send_next_rate_update(void) _configure_message_rate(CLASS_MON, MSG_MON_HW2, 2); // 24+8 bytes break; #endif -#if UBLOX_VERSION_AUTODETECTION +#if UBLOX_RXM_RAW_LOGGING case 7: - _request_version(); + _configure_message_rate(CLASS_RXM, MSG_RXM_RAW, gps._raw_data); break; #endif -#if UBLOX_RXM_RAW_LOGGING +#if UBLOX_VERSION_AUTODETECTION case 8: - _configure_message_rate(CLASS_RXM, MSG_RXM_RAW, gps._raw_data); // 24*16+8 bytes + _request_version(); break; #endif default: