diff --git a/src/main/io/serial_msp.c b/src/main/io/serial_msp.c index 14d2f81c46..3022f49479 100644 --- a/src/main/io/serial_msp.c +++ b/src/main/io/serial_msp.c @@ -1268,6 +1268,12 @@ static bool processOutCommand(uint8_t cmdMSP) headSerialReply(1); serialize8(currentControlRateProfile->rcYawRate8); break; + case MSP_SENSOR_CONFIG: + headSerialReply(3); + serialize8(masterConfig.acc_hardware); + serialize8(masterConfig.baro_hardware); + serialize8(masterConfig.mag_hardware); + break; default: return false; @@ -1801,6 +1807,11 @@ static bool processInCommand(void) case MSP_SET_TEMPORARY_COMMANDS: currentControlRateProfile->rcYawRate8 = read8(); break; + case MSP_SET_SENSOR_CONFIG: + masterConfig.acc_hardware = read8(); + masterConfig.baro_hardware = read8(); + masterConfig.mag_hardware = read8(); + break; default: // we do not know how to handle the (valid) message, indicate error MSP $M! return false; diff --git a/src/main/io/serial_msp.h b/src/main/io/serial_msp.h index c89e311a76..bba87e502f 100644 --- a/src/main/io/serial_msp.h +++ b/src/main/io/serial_msp.h @@ -194,6 +194,9 @@ static const char * const boardIdentifier = TARGET_BOARD_IDENTIFIER; #define MSP_ADVANCED_TUNING 94 #define MSP_SET_ADVANCED_TUNING 95 +#define MSP_SENSOR_CONFIG 96 +#define MSP_SET_SENSOR_CONFIG 97 + #define MSP_TEMPORARY_COMMANDS 98 // Temporary Commands before cleanup #define MSP_SET_TEMPORARY_COMMANDS 99 // Temporary Commands before cleanup diff --git a/src/main/version.h b/src/main/version.h index 9a41fa4d54..c973dcd678 100644 --- a/src/main/version.h +++ b/src/main/version.h @@ -17,7 +17,7 @@ #define FC_VERSION_MAJOR 2 // increment when a major release is made (big new feature, etc) #define FC_VERSION_MINOR 8 // increment when a minor release is made (small new feature, change etc) -#define FC_VERSION_PATCH_LEVEL 1 // increment when a bug is fixed +#define FC_VERSION_PATCH_LEVEL 2 // increment when a bug is fixed #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x)