mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Enable retrieval of the BUILD_KEY using MSP2 (#12264)
* Enable retrieval of the BUILD_KEY using MSP2 * Repositioning
This commit is contained in:
parent
395e8e8983
commit
7604b05a00
5 changed files with 15 additions and 2 deletions
|
@ -2522,7 +2522,7 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_
|
|||
// type byte, then length byte followed by the actual characters
|
||||
const uint8_t textType = sbufBytesRemaining(src) ? sbufReadU8(src) : 0;
|
||||
|
||||
char* textVar;
|
||||
const char *textVar;
|
||||
|
||||
switch (textType) {
|
||||
case MSP2TEXT_PILOT_NAME:
|
||||
|
@ -2541,6 +2541,10 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_
|
|||
textVar = currentControlRateProfile->profileName;
|
||||
break;
|
||||
|
||||
case MSP2TEXT_BUILDKEY:
|
||||
textVar = buildKey;
|
||||
break;
|
||||
|
||||
default:
|
||||
return MSP_RESULT_ERROR;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue