mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Make OSD items configurable
This commit is contained in:
parent
98bd0f18b3
commit
e2ec4ce2be
13 changed files with 124 additions and 28 deletions
|
@ -59,6 +59,7 @@
|
|||
#include "io/flashfs.h"
|
||||
#include "io/transponder_ir.h"
|
||||
#include "io/asyncfatfs/asyncfatfs.h"
|
||||
#include "io/osd.h"
|
||||
|
||||
#include "telemetry/telemetry.h"
|
||||
|
||||
|
@ -1569,6 +1570,9 @@ static bool processInCommand(void)
|
|||
#endif
|
||||
#ifdef OSD
|
||||
case MSP_SET_OSD_CONFIG:
|
||||
masterConfig.osdProfile.system = read8();
|
||||
for (i = 0; i < OSD_MAX_ITEMS; i++)
|
||||
masterConfig.osdProfile.item_pos[i] = read16();
|
||||
break;
|
||||
case MSP_OSD_CHAR_WRITE:
|
||||
addr = read8();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue