mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
CF/BF - Update MSP_GPS_CONFIG
This commit is contained in:
parent
10205731b9
commit
4f743a0b40
2 changed files with 10 additions and 6 deletions
|
@ -812,8 +812,10 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
|
||||||
|
|
||||||
#ifdef GPS
|
#ifdef GPS
|
||||||
case MSP_GPS_CONFIG:
|
case MSP_GPS_CONFIG:
|
||||||
sbufWriteU8(dst, gpsConfig()->provider); // gps_type
|
sbufWriteU8(dst, gpsConfig()->provider);
|
||||||
sbufWriteU8(dst, gpsConfig()->sbasMode); // gps_ubx_sbas
|
sbufWriteU8(dst, gpsConfig()->sbasMode);
|
||||||
|
sbufWriteU8(dst, gpsConfig()->autoConfig);
|
||||||
|
sbufWriteU8(dst, gpsConfig()->autoBaud);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSP_RAW_GPS:
|
case MSP_RAW_GPS:
|
||||||
|
@ -1435,8 +1437,10 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
||||||
|
|
||||||
#ifdef GPS
|
#ifdef GPS
|
||||||
case MSP_SET_GPS_CONFIG:
|
case MSP_SET_GPS_CONFIG:
|
||||||
gpsConfigMutable()->provider = sbufReadU8(src); // gps_type
|
gpsConfigMutable()->provider = sbufReadU8(src);
|
||||||
gpsConfigMutable()->sbasMode = sbufReadU8(src); // gps_ubx_sbas
|
gpsConfigMutable()->sbasMode = sbufReadU8(src);
|
||||||
|
gpsConfigMutable()->autoConfig = sbufReadU8(src);
|
||||||
|
gpsConfigMutable()->autoBaud = sbufReadU8(src);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -58,8 +58,8 @@
|
||||||
|
|
||||||
#define MSP_PROTOCOL_VERSION 0
|
#define MSP_PROTOCOL_VERSION 0
|
||||||
|
|
||||||
#define API_VERSION_MAJOR 1 // increment when major changes are made
|
#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_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
|
#define API_VERSION_LENGTH 2
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue