mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Allow OSD warnings to be toggled
This commit is contained in:
parent
8a471deddc
commit
6621ed9818
5 changed files with 62 additions and 35 deletions
|
@ -730,6 +730,7 @@ TEST(OsdTest, TestElementWarningsBattery)
|
|||
{
|
||||
// given
|
||||
osdConfigMutable()->item_pos[OSD_WARNINGS] = OSD_POS(9, 10) | VISIBLE_FLAG;
|
||||
osdConfigMutable()->enabledWarnings = OSD_WARNING_BATTERY_WARNING | OSD_WARNING_BATTERY_CRITICAL | OSD_WARNING_BATTERY_NOT_FULL;
|
||||
|
||||
// and
|
||||
batteryConfigMutable()->vbatfullcellvoltage = 41;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue