CF/BF - Update MSP_GPS_CONFIG

This commit is contained in:
Hydra 2017-04-02 19:38:28 +01:00 committed by Dominic Clifton
parent 10205731b9
commit 4f743a0b40
2 changed files with 10 additions and 6 deletions

View File

@ -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

View File

@ -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