From 6cf59ea2a2bee60d81f0445c233bfd4b9e20d732 Mon Sep 17 00:00:00 2001 From: Selene ToyKeeper Date: Tue, 12 Mar 2019 03:41:09 -0600 Subject: fixed build error when only one of the two main strobes was enabled --- spaghetti-monster/anduril/anduril.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/spaghetti-monster/anduril/anduril.c b/spaghetti-monster/anduril/anduril.c index d25e88d..fa4508e 100644 --- a/spaghetti-monster/anduril/anduril.c +++ b/spaghetti-monster/anduril/anduril.c @@ -951,12 +951,18 @@ inline void party_tactical_strobe_mode_iter(uint8_t st) { uint8_t del = strobe_delays[st]; // TODO: make tac strobe brightness configurable? set_level(STROBE_BRIGHTNESS); - if (st == party_strobe_e) { // party strobe + if (0) {} // placeholde0 + #ifdef USE_PARTY_STROBE_MODE + else if (st == party_strobe_e) { // party strobe if (del < 42) delay_zero(); else nice_delay_ms(1); - } else { //tactical strobe + } + #endif + #ifdef USE_TACTICAL_STROBE_MODE + else { //tactical strobe nice_delay_ms(del >> 1); } + #endif set_level(0); nice_delay_ms(del); // no return check necessary on final delay } -- cgit v1.2.3