aboutsummaryrefslogtreecommitdiff
path: root/ui/anduril/anduril.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ui/anduril/anduril.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ui/anduril/anduril.c b/ui/anduril/anduril.c
index 383acbc..5972eb2 100644
--- a/ui/anduril/anduril.c
+++ b/ui/anduril/anduril.c
@@ -286,9 +286,13 @@ void loop() {
StatePtr state = current_state;
#ifdef USE_AUX_RGB_LEDS_WHILE_ON
- // display battery charge on RGB button during use
- if (state == steady_state)
- rgb_led_voltage_readout(actual_level > USE_AUX_RGB_LEDS_WHILE_ON);
+ // display battery charge on RGB button during use
+ #ifdef USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS
+ if ((state == steady_state) && (actual_level > cfg.use_aux_rgb_leds_while_on_min_level)) // only show voltage if we are above the configured minimum ramp level
+ #else
+ if (state == steady_state)
+ #endif
+ rgb_led_voltage_readout(actual_level > USE_AUX_RGB_LEDS_WHILE_ON);
#endif
if (0) {} // placeholder