aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorSelene ToyKeeper2023-11-30 10:22:52 -0700
committerSelene ToyKeeper2023-11-30 10:22:52 -0700
commitf912d42aa1f27947291f828d0b8fb9fa9c21e4ab (patch)
tree2b73b25b2c74328b527d5bbf171dd7d639a6f3ae /ui
parentsofirn-lt1s-pro: disable memory timer and extended simple UI by default (diff)
parentbikeflash: Cap default brightness to max, define (diff)
downloadanduril-f912d42aa1f27947291f828d0b8fb9fa9c21e4ab.tar.gz
anduril-f912d42aa1f27947291f828d0b8fb9fa9c21e4ab.tar.bz2
anduril-f912d42aa1f27947291f828d0b8fb9fa9c21e4ab.zip
Merge branch 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril into pr23-digitalcircuit-fix-nofet-bikeflash
* 'fix-nofet-bikeflash' of github.com:digitalcircuit/anduril: bikeflash: Cap default brightness to max, define
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
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.