diff options
| author | SiteRelEnby | 2024-04-20 14:28:02 -0500 |
|---|---|---|
| committer | SiteRelEnby | 2024-04-20 14:28:02 -0500 |
| commit | cf3d68ce31ca47eab4980e8b07a44345ea44cebc (patch) | |
| tree | 8a83bc31998f8121d9b07994adb8261066959a84 /ui | |
| parent | Add a feature to make RGB voltage configurable (diff) | |
| parent | include hardware-specific readme files in the release .zip (diff) | |
| download | anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.gz anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.tar.bz2 anduril-cf3d68ce31ca47eab4980e8b07a44345ea44cebc.zip | |
Merge branch 'main' into rgb-voltage-configurable
Diffstat (limited to '')
| -rw-r--r-- | ui/anduril/anduril.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/ui/anduril/anduril.c b/ui/anduril/anduril.c index fdc9527..ac8da74 100644 --- a/ui/anduril/anduril.c +++ b/ui/anduril/anduril.c @@ -225,8 +225,16 @@ void setup() { // regular e-switch light, no hard clicky power button - // blink at power-on to let user know power is connected - blink_once(); + #ifdef USE_WEAK_BATTERY_PROTECTION + // try to measure the battery strength + // (must be done *before* factory reset, + // because reset tries to use full power, + // and a weak battery can't do that) + detect_weak_battery(); + #else + // blink at power-on to let user know power is connected + blink_once(); + #endif #ifdef USE_FACTORY_RESET if (button_is_pressed()) |
