diff --git a/src/main/io/serial_msp.c b/src/main/io/serial_msp.c index 1a6ec564a..0665662a8 100644 --- a/src/main/io/serial_msp.c +++ b/src/main/io/serial_msp.c @@ -218,11 +218,15 @@ const char *boardIdentifier = TARGET_BOARD_IDENTIFIER; #define MSP_PID_CONTROLLER 59 #define MSP_SET_PID_CONTROLLER 60 -#define MSP_ARMING_CONFIG 61 //out message Returns auto_disarm_delay and disarm_kill_switch parameters -#define MSP_SET_ARMING_CONFIG 62 //in message Sets auto_disarm_delay and disarm_kill_switch parameters +#define MSP_ARMING_CONFIG 61 //out message Returns auto_disarm_delay and disarm_kill_switch parameters +#define MSP_SET_ARMING_CONFIG 62 //in message Sets auto_disarm_delay and disarm_kill_switch parameters -#define MSP_LOOP_TIME 63 //out message Returns FC cycle time i.e looptime parameter -#define MSP_SET_LOOP_TIME 64 //in message Sets FC cycle time i.e looptime parameter +#define MSP_DATAFLASH_SUMMARY 70 //out message - get description of dataflash chip +#define MSP_DATAFLASH_READ 71 //out message - get content of dataflash chip +#define MSP_DATAFLASH_ERASE 72 //in message - erase dataflash chip + +#define MSP_LOOP_TIME 73 //out message Returns FC cycle time i.e looptime parameter +#define MSP_SET_LOOP_TIME 74 //in message Sets FC cycle time i.e looptime parameter // // Baseflight MSP commands (if enabled they exist in Cleanflight) @@ -232,18 +236,14 @@ const char *boardIdentifier = TARGET_BOARD_IDENTIFIER; // FIXME - Provided for backwards compatibility with configurator code until configurator is updated. // DEPRECATED - DO NOT USE "MSP_BF_CONFIG" and MSP_SET_BF_CONFIG. In Cleanflight, isolated commands already exist and should be used instead. -#define MSP_BF_CONFIG 66 //out message baseflight-specific settings that aren't covered elsewhere -#define MSP_SET_BF_CONFIG 67 //in message baseflight-specific settings save +#define MSP_BF_CONFIG 66 //out message baseflight-specific settings that aren't covered elsewhere +#define MSP_SET_BF_CONFIG 67 //in message baseflight-specific settings save #define MSP_REBOOT 68 //in message reboot settings // DEPRECATED - Use MSP_BUILD_INFO instead #define MSP_BF_BUILD_INFO 69 //out message build date as well as some space for future expansion -#define MSP_DATAFLASH_SUMMARY 70 //out message - get description of dataflash chip -#define MSP_DATAFLASH_READ 71 //out message - get content of dataflash chip -#define MSP_DATAFLASH_ERASE 72 //in message - erase dataflash chip - // // Multwii original MSP commands // @@ -1278,7 +1278,7 @@ static bool processInCommand(void) masterConfig.disarm_kill_switch = read8(); break; case MSP_SET_LOOP_TIME: - masterConfig.looptime = read16(); + masterConfig.looptime = read16(); break; case MSP_SET_PID_CONTROLLER: currentProfile->pidProfile.pidController = read8();