1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Enables retrieval of the RELEASE_NAME using MSP2 (#12878)

Retrieve releasename
This commit is contained in:
Mark Haslinghuis 2023-06-11 02:28:52 +02:00 committed by GitHub
parent 16776dc29f
commit 7d1007ea03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 24 additions and 9 deletions

View file

@ -2551,10 +2551,16 @@ static mspResult_e mspFcProcessOutCommandWithArg(mspDescriptor_t srcDesc, int16_
textVar = buildKey;
break;
case MSP2TEXT_RELEASENAME:
textVar = releaseName;
break;
default:
return MSP_RESULT_ERROR;
}
if (!textVar) return MSP_RESULT_ERROR;
const uint8_t textLength = strlen(textVar);
// type byte, then length byte followed by the actual characters