From 477082fc0c8671988b7bcac2a6d816b80a9fe675 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Sun, 7 Oct 2018 19:19:37 -0600 Subject: Added option to skip "low" mode for aux LEDs. Not actually used though. --- spaghetti-monster/anduril/anduril.c | 6 ++++++ spaghetti-monster/anduril/cfg-ff-pl47.h | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'spaghetti-monster') diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index 4aaea74..d15e9a0 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -1189,6 +1189,9 @@ uint8_t lockout_state(EventPtr event, uint16_t arg) { #else mode = (mode + 1) % 3; #endif + #ifdef INDICATOR_LED_SKIP_LOW + if (mode == 1) { mode ++; } + #endif indicator_led_mode = (mode << 2) + (indicator_led_mode & 0x03); indicator_led(mode); save_config(); @@ -1205,6 +1208,9 @@ uint8_t lockout_state(EventPtr event, uint16_t arg) { #else uint8_t mode = (arg >> 5) % 3; #endif + #ifdef INDICATOR_LED_SKIP_LOW + if (mode == 1) { mode ++; } + #endif indicator_led_mode = (indicator_led_mode & 0b11111100) | mode; #ifdef TICK_DURING_STANDBY if (mode == 3) diff --git a/spaghetti-monster/anduril/cfg-ff-pl47.h b/spaghetti-monster/anduril/cfg-ff-pl47.h index 5a623fc..d916e06 100644 --- a/spaghetti-monster/anduril/cfg-ff-pl47.h +++ b/spaghetti-monster/anduril/cfg-ff-pl47.h @@ -15,6 +15,10 @@ // lockout: blinking (3) #define INDICATOR_LED_DEFAULT_MODE ((3<<2) + 2) +// the "low" mode doesn't work on this light's aux LEDs +// (but it does work on the switch LEDs) +//#define INDICATOR_LED_SKIP_LOW + // ... or if TICK_DURING_STANDBY is turned off: // off mode: high (2) // lockout: off (0) -- cgit v1.2.3