Skip to content

Commit

Permalink
CF/BF - Update MSP_GPS_CONFIG
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Apr 2, 2017
1 parent 1aa337e commit c2adb1e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions src/main/fc/fc_msp.c
Original file line number Diff line number Diff line change
Expand Up @@ -811,8 +811,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:
Expand Down Expand Up @@ -1433,8 +1435,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

Expand Down
4 changes: 2 additions & 2 deletions src/main/msp/msp_protocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c2adb1e

Please sign in to comment.