diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2023-10-29 11:12:12 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-10-29 11:22:01 +0000 |
commit | 1651254ba4db1d949bb2d58dd742a846b1e910b1 (patch) | |
tree | ff67e0dd4ee5587b7a6d10decb5e89f9e6698503 /apps/gui/yesno.c | |
parent | 954dd0ff758b7ec95e387cca9124529c63339791 (diff) | |
download | rockbox-1651254ba4db1d949bb2d58dd742a846b1e910b1.tar.gz rockbox-1651254ba4db1d949bb2d58dd742a846b1e910b1.zip |
powermgmt: Don't force shutdown when externally powered
In rare cases, battery voltage at boot can be below the shutdown
threshold even if a charger is plugged in. This triggers a forced
shutdown and tells you to "RECHARGE!" despite there being plenty
of power available, which is annoying.
Tweak the forced shutdown check so it accounts for external power
sources; if any are present, battery voltage will be ignored.
Change-Id: Id6280b0b666df9eef31c37a03c07c9d6d3f50221
Diffstat (limited to 'apps/gui/yesno.c')
0 files changed, 0 insertions, 0 deletions