MSP_NAME
This commit is contained in:
parent
fbdd6547f2
commit
1e4a0c72fc
|
@ -750,6 +750,13 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
serialize16(constrain(averageSystemLoadPercent, 0, 100));
|
||||
break;
|
||||
|
||||
case MSP_NAME:
|
||||
headSerialReply(MAX_NAME_LENGTH);
|
||||
for (uint8_t i=0; i<MAX_NAME_LENGTH; i++) {
|
||||
serialize8(masterConfig.name[i]);
|
||||
}
|
||||
break;
|
||||
|
||||
case MSP_STATUS:
|
||||
headSerialReply(11);
|
||||
serialize16(cycleTime);
|
||||
|
|
|
@ -99,6 +99,9 @@ static const char * const boardIdentifier = TARGET_BOARD_IDENTIFIER;
|
|||
#define MSP_BOARD_INFO 4 //out message
|
||||
#define MSP_BUILD_INFO 5 //out message
|
||||
|
||||
#define MSP_NAME 10
|
||||
|
||||
|
||||
//
|
||||
// MSP commands for Cleanflight original features
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue