diff options
| author | Selene ToyKeeper | 2023-11-30 10:22:52 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-11-30 10:22:52 -0700 |
| commit | f912d42aa1f27947291f828d0b8fb9fa9c21e4ab (patch) | |
| tree | 2b73b25b2c74328b527d5bbf171dd7d639a6f3ae /ui | |
| parent | sofirn-lt1s-pro: disable memory timer and extended simple UI by default (diff) | |
| parent | bikeflash: Cap default brightness to max, define (diff) | |
| download | anduril-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 '')
| -rw-r--r-- | ui/anduril/load-save-config.h | 10 |
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 |
