aboutsummaryrefslogtreecommitdiff
path: root/arch/mcu.c
diff options
context:
space:
mode:
authorShane Synan2023-11-28 14:57:41 -0500
committerShane Synan2023-11-28 14:57:41 -0500
commit538e5029dc426bfd61eb3c6b9e2891b3cec355b7 (patch)
treeef8550aa5ab82ae7053f66d7e7280f6accbf6f56 /arch/mcu.c
parentadded a Makefile, so either `make` or `./make` can be used for most tasks (diff)
downloadanduril-538e5029dc426bfd61eb3c6b9e2891b3cec355b7.tar.gz
anduril-538e5029dc426bfd61eb3c6b9e2891b3cec355b7.tar.bz2
anduril-538e5029dc426bfd61eb3c6b9e2891b3cec355b7.zip
bikeflash: Cap default brightness to max, define
Cap fallback default bike flasher brightness to stay below MAX_BIKING_LEVEL, fixing noFET/boost driver builds where MAX_1x7135 is above MAX_BIKING_LEVEL. Add the optional define DEFAULT_BIKING_LEVEL to set the default bike flasher brightness. This is NOT checked against MAX_BIKING_LEVEL, for simplicity. Alternatively, strobe-modes.c could be updated to check if the value exceeds MAX_BIKING_LEVEL at runtime. However, that might take up more flash space. Migrated from https://code.launchpad.net/~digitalcircuit/flashlight-firmware/anduril2_fix_nofet_bikeflash/+merge/408124
Diffstat (limited to 'arch/mcu.c')
0 files changed, 0 insertions, 0 deletions