aboutsummaryrefslogtreecommitdiff
path: root/fsm
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--fsm/ramping.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/fsm/ramping.c b/fsm/ramping.c
index adc8acb..b3b3b23 100644
--- a/fsm/ramping.c
+++ b/fsm/ramping.c
@@ -41,9 +41,16 @@ inline void set_level_aux_leds(uint8_t level) {
#include "anduril/aux-leds.h" // for rgb_led_voltage_readout()
inline void set_level_aux_rgb_leds(uint8_t level) {
if (! go_to_standby) {
+ #ifdef USE_CONFIGURABLE_RGB_VOLTAGE_LEVELS
+ if ((level > 0) && (actual_level > cfg.use_aux_rgb_leds_while_on_min_level)){
+ rgb_led_voltage_readout(level > cfg.use_aux_rgb_leds_while_on);
+ }
+ #else
if (level > 0) {
rgb_led_voltage_readout(level > USE_AUX_RGB_LEDS_WHILE_ON);
- } else {
+ }
+ #endif
+ else {
rgb_led_set(0);
}
// some drivers can be wired with RGB or single color to button
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.