1
0
Fork 0
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:
Dan Nixon 2017-08-19 13:02:47 +01:00
parent 8a471deddc
commit 6621ed9818
5 changed files with 62 additions and 35 deletions

View file

@ -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;