aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/anduril/load-save-config.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/ui/anduril/load-save-config.h b/ui/anduril/load-save-config.h
index 514fcbb..eb6d798 100644
--- a/ui/anduril/load-save-config.h
+++ b/ui/anduril/load-save-config.h
@@ -118,7 +118,15 @@ Config cfg = {
.strobe_delays = { 41, 67 },
#endif
#ifdef USE_BIKE_FLASHER_MODE
- .bike_flasher_brightness = MAX_1x7135,
+ #ifndef DEFAULT_BIKING_LEVEL
+ #if MAX_1x7135 > MAX_BIKING_LEVEL
+ // Make sure fallback default doesn't exceed maximum (e.g. noFET)
+ #define DEFAULT_BIKING_LEVEL MAX_BIKING_LEVEL
+ #else
+ #define DEFAULT_BIKING_LEVEL MAX_1x7135
+ #endif
+ #endif
+ .bike_flasher_brightness = DEFAULT_BIKING_LEVEL,
#endif
#ifdef USE_BEACON_MODE
// beacon timing