diff options
| author | Selene ToyKeeper | 2019-03-12 03:41:09 -0600 |
|---|---|---|
| committer | Selene ToyKeeper | 2019-03-12 03:41:09 -0600 |
| commit | 6cf59ea2a2bee60d81f0445c233bfd4b9e20d732 (patch) | |
| tree | da66441072622682ee332906a9d4bc2aba27a6b8 | |
| parent | anduril: refactored pretty much all the blinky code, to put inner loops in th... (diff) | |
| download | anduril-6cf59ea2a2bee60d81f0445c233bfd4b9e20d732.tar.gz anduril-6cf59ea2a2bee60d81f0445c233bfd4b9e20d732.tar.bz2 anduril-6cf59ea2a2bee60d81f0445c233bfd4b9e20d732.zip | |
fixed build error when only one of the two main strobes was enabled
| -rw-r--r-- | spaghetti-monster/anduril/anduril.c | 10 |
1 files 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 } |
