aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiteRelEnby2024-02-02 18:06:03 -0600
committerSiteRelEnby2024-02-02 18:06:03 -0600
commitafcacfb02c59b2ce2c9a9eeb6ec38aa08588f6dd (patch)
treebb0e58f2eccecf886728eeae2cda18e578c32a0c
parentavr32dd20-devkit: use unimplemented "CH" pin as a boost bypass control (diff)
downloadanduril-afcacfb02c59b2ce2c9a9eeb6ec38aa08588f6dd.tar.gz
anduril-afcacfb02c59b2ce2c9a9eeb6ec38aa08588f6dd.tar.bz2
anduril-afcacfb02c59b2ce2c9a9eeb6ec38aa08588f6dd.zip
Bugfix: Tactical mode has a dependency on momentary mode
Use case 1: Updating a t85 light, where tactical mode is useful but takes some squeezing, and momentary is less useful Use case 2: Custom builds for people who don't like/want momentary mode
Diffstat (limited to '')
-rw-r--r--ui/anduril/anduril.c4
-rw-r--r--ui/anduril/strobe-modes.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/ui/anduril/anduril.c b/ui/anduril/anduril.c
index 1cdb8d0..7557bf7 100644
--- a/ui/anduril/anduril.c
+++ b/ui/anduril/anduril.c
@@ -121,7 +121,7 @@
#include "anduril/lockout-mode.h"
#endif
-#ifdef USE_MOMENTARY_MODE
+#if (defined(USE_MOMENTARY_MODE) || defined(USE_TACTICAL_MODE))
#include "anduril/momentary-mode.h"
#endif
@@ -189,7 +189,7 @@
#include "anduril/lockout-mode.c"
#endif
-#ifdef USE_MOMENTARY_MODE
+#if (defined(USE_MOMENTARY_MODE) || defined(USE_TACTICAL_MODE))
#include "anduril/momentary-mode.c"
#endif
diff --git a/ui/anduril/strobe-modes.c b/ui/anduril/strobe-modes.c
index ccc4aa0..38e4dca 100644
--- a/ui/anduril/strobe-modes.c
+++ b/ui/anduril/strobe-modes.c
@@ -13,7 +13,7 @@ uint8_t strobe_state(Event event, uint16_t arg) {
// 'st' reduces ROM size slightly
strobe_mode_te st = current_strobe_type;
- #ifdef USE_MOMENTARY_MODE
+ #if defined(USE_MOMENTARY_MODE) || defined(USE_TACTICAL_MODE)
momentary_mode = 1; // 0 = ramping, 1 = strobes
#endif
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.