From 4f743a0b40e69339f65b711bd770de7fdd431c03 Mon Sep 17 00:00:00 2001 From: Hydra Date: Sun, 2 Apr 2017 19:38:28 +0100 Subject: [PATCH] CF/BF - Update MSP_GPS_CONFIG --- src/main/fc/fc_msp.c | 12 ++++++++---- src/main/msp/msp_protocol.h | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/main/fc/fc_msp.c b/src/main/fc/fc_msp.c index 232a00c1d..c3d27342c 100755 --- a/src/main/fc/fc_msp.c +++ b/src/main/fc/fc_msp.c @@ -812,8 +812,10 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn #ifdef GPS case MSP_GPS_CONFIG: - sbufWriteU8(dst, gpsConfig()->provider); // gps_type - sbufWriteU8(dst, gpsConfig()->sbasMode); // gps_ubx_sbas + sbufWriteU8(dst, gpsConfig()->provider); + sbufWriteU8(dst, gpsConfig()->sbasMode); + sbufWriteU8(dst, gpsConfig()->autoConfig); + sbufWriteU8(dst, gpsConfig()->autoBaud); break; case MSP_RAW_GPS: @@ -1435,8 +1437,10 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src) #ifdef GPS case MSP_SET_GPS_CONFIG: - gpsConfigMutable()->provider = sbufReadU8(src); // gps_type - gpsConfigMutable()->sbasMode = sbufReadU8(src); // gps_ubx_sbas + gpsConfigMutable()->provider = sbufReadU8(src); + gpsConfigMutable()->sbasMode = sbufReadU8(src); + gpsConfigMutable()->autoConfig = sbufReadU8(src); + gpsConfigMutable()->autoBaud = sbufReadU8(src); break; #endif diff --git a/src/main/msp/msp_protocol.h b/src/main/msp/msp_protocol.h index badc00299..843dba0fc 100644 --- a/src/main/msp/msp_protocol.h +++ b/src/main/msp/msp_protocol.h @@ -58,8 +58,8 @@ #define MSP_PROTOCOL_VERSION 0 -#define API_VERSION_MAJOR 1 // increment when major changes are made -#define API_VERSION_MINOR 33 // increment after a release, to set the version for all changes to go into the following release (if no changes to MSP are made between the releases, this can be reverted before the release) +#define API_VERSION_MAJOR 1 // increment when major changes are made +#define API_VERSION_MINOR 34 // increment after a release, to set the version for all changes to go into the following release (if no changes to MSP are made between the releases, this can be reverted before the release) #define API_VERSION_LENGTH 2