1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Added ability to display PIDs in OSD

This commit is contained in:
Martin Budden 2016-12-06 13:24:04 +00:00
parent ad95800f4d
commit 41dda49b44
4 changed files with 52 additions and 16 deletions

View file

@ -1559,7 +1559,10 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
osdProfile()->alt_alarm = sbufReadU16(src);
} else {
// set a position setting
osdProfile()->item_pos[addr] = sbufReadU16(src);
const uint16_t pos = sbufReadU16(src);
if (addr < OSD_ITEM_COUNT) {
osdProfile()->item_pos[addr] = pos;
}
}
}
break;