1
0
Fork 0
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:
J Blackman 2023-02-01 03:50:55 +11:00 committed by GitHub
parent 395e8e8983
commit 7604b05a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 2 deletions

View file

@ -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;
}