mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Add SPI ELRS Model Match ID (#13774)
This commit is contained in:
parent
9730f9ee16
commit
0819a56d55
1 changed files with 14 additions and 0 deletions
|
@ -1644,6 +1644,12 @@ case MSP_NAME:
|
|||
uint8_t emptyUid[6];
|
||||
memset(emptyUid, 0, sizeof(emptyUid));
|
||||
sbufWriteData(dst, &emptyUid, sizeof(emptyUid));
|
||||
#endif
|
||||
// Added in MSP API 1.47
|
||||
#ifdef USE_RX_EXPRESSLRS
|
||||
sbufWriteU8(dst, rxExpressLrsSpiConfig()->modelId);
|
||||
#else
|
||||
sbufWriteU8(dst, 0);
|
||||
#endif
|
||||
break;
|
||||
case MSP_FAILSAFE_CONFIG:
|
||||
|
@ -3792,6 +3798,14 @@ static mspResult_e mspProcessInCommand(mspDescriptor_t srcDesc, int16_t cmdMSP,
|
|||
#else
|
||||
uint8_t emptyUid[6];
|
||||
sbufReadData(src, emptyUid, 6);
|
||||
#endif
|
||||
}
|
||||
if (sbufBytesRemaining(src) >= 1) {
|
||||
#ifdef USE_RX_EXPRESSLRS
|
||||
// Added in MSP API 1.47
|
||||
rxExpressLrsSpiConfigMutable()->modelId = sbufReadU8(src);
|
||||
#else
|
||||
sbufReadU8(src);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue