diff options
| author | Selene ToyKeeper | 2025-06-19 17:10:43 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2025-06-19 17:10:43 -0600 |
| commit | be4d47a19eec28fa4c93364351c811aef302d9a8 (patch) | |
| tree | 5cea254976c480fe8d882f4503d647e0e9f52c0a /fsm | |
| parent | lockout mode now only does momentary moon/low on 1st and 2nd presses, (diff) | |
| parent | Merge branch 'main' into rgb-voltage-configurable (diff) | |
| download | anduril-be4d47a19eec28fa4c93364351c811aef302d9a8.tar.gz anduril-be4d47a19eec28fa4c93364351c811aef302d9a8.tar.bz2 anduril-be4d47a19eec28fa4c93364351c811aef302d9a8.zip | |
Merge branch 'rgb-voltage-configurable' of github.com:SiteRelEnby/anduril into pr10-SiteRelEnby-rgb-voltage-configurable
pulling pr10 branch into a feature branch based on a newer trunk
* 'rgb-voltage-configurable' of github.com:SiteRelEnby/anduril:
Add a feature to make RGB voltage configurable
Diffstat (limited to '')
| -rw-r--r-- | fsm/ramping.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/fsm/ramping.c b/fsm/ramping.c index 743e619..e0c391a 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 |
