mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Small fixes from #3133
This commit is contained in:
parent
f4e4e45aa2
commit
7b6dc1b005
3 changed files with 3 additions and 2 deletions
|
@ -2061,7 +2061,7 @@ static mspResult_e mspCommonProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
|
|||
#if defined(OSD)
|
||||
const uint16_t value = sbufReadU16(src);
|
||||
|
||||
/* Get screen index, 0 is post flight statsitsics, 1 and above are in flight OSD screens */
|
||||
/* Get screen index, 0 is post flight statistics, 1 and above are in flight OSD screens */
|
||||
const uint8_t screen = (sbufBytesRemaining(src) >= 1) ? sbufReadU8(src) : 1;
|
||||
|
||||
if (screen == 0 && addr < OSD_STAT_COUNT) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue