mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-24 08:45:31 +03:00
Mac issues
This commit is contained in:
parent
dad76ec961
commit
fa166c61c6
1 changed files with 13 additions and 11 deletions
|
@ -3840,18 +3840,20 @@ bool mspFCProcessInOutCommand(uint16_t cmdMSP, sbuf_t *dst, sbuf_t *src, mspResu
|
|||
*ret = mspFcLogicConditionCommand(dst, src);
|
||||
break;
|
||||
case MSP2_INAV_CUSTOM_OSD_ELEMENT:
|
||||
const uint8_t idx = sbufReadU8(src);
|
||||
{
|
||||
const uint8_t idx = sbufReadU8(src);
|
||||
|
||||
if (idx < MAX_CUSTOM_ELEMENTS) {
|
||||
const osdCustomElement_t *customElement = osdCustomElements(idx);
|
||||
for (int ii = 0; ii < CUSTOM_ELEMENTS_PARTS; ii++) {
|
||||
sbufWriteU8(dst, customElement->part[ii].type);
|
||||
sbufWriteU16(dst, customElement->part[ii].value);
|
||||
}
|
||||
sbufWriteU8(dst, customElement->visibility.type);
|
||||
sbufWriteU16(dst, customElement->visibility.value);
|
||||
for (int ii = 0; ii < OSD_CUSTOM_ELEMENT_TEXT_SIZE - 1; ii++) {
|
||||
sbufWriteU8(dst, customElement->osdCustomElementText[ii]);
|
||||
if (idx < MAX_CUSTOM_ELEMENTS) {
|
||||
const osdCustomElement_t *customElement = osdCustomElements(idx);
|
||||
for (int ii = 0; ii < CUSTOM_ELEMENTS_PARTS; ii++) {
|
||||
sbufWriteU8(dst, customElement->part[ii].type);
|
||||
sbufWriteU16(dst, customElement->part[ii].value);
|
||||
}
|
||||
sbufWriteU8(dst, customElement->visibility.type);
|
||||
sbufWriteU16(dst, customElement->visibility.value);
|
||||
for (int ii = 0; ii < OSD_CUSTOM_ELEMENT_TEXT_SIZE - 1; ii++) {
|
||||
sbufWriteU8(dst, customElement->osdCustomElementText[ii]);
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue