mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-21 15:25:36 +03:00
Add OSD Link Quality alarm value to the MSP (#13121)
This commit is contained in:
parent
57fbf61331
commit
65357e51bd
1 changed files with 9 additions and 0 deletions
|
@ -1050,6 +1050,9 @@ static bool mspCommonProcessOutCommand(int16_t cmdMSP, sbuf_t *dst, mspPostProce
|
|||
sbufWriteU8(dst, osdConfig()->camera_frame_width);
|
||||
sbufWriteU8(dst, osdConfig()->camera_frame_height);
|
||||
|
||||
// API >= 1.46
|
||||
sbufWriteU16(dst, osdConfig()->link_quality_alarm);
|
||||
|
||||
break;
|
||||
}
|
||||
#endif // USE_OSD
|
||||
|
@ -4240,6 +4243,12 @@ static mspResult_e mspCommonProcessInCommand(mspDescriptor_t srcDesc, int16_t cm
|
|||
osdConfigMutable()->camera_frame_width = sbufReadU8(src);
|
||||
osdConfigMutable()->camera_frame_height = sbufReadU8(src);
|
||||
}
|
||||
|
||||
if (sbufBytesRemaining(src) >= 2) {
|
||||
// API >= 1.46
|
||||
osdConfigMutable()->link_quality_alarm = sbufReadU16(src);
|
||||
}
|
||||
|
||||
} else if ((int8_t)addr == -2) {
|
||||
// Timers
|
||||
uint8_t index = sbufReadU8(src);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue