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:
parent
16776dc29f
commit
7d1007ea03
6 changed files with 24 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue