1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-29 11:26:04 +00:00
hekate/bootloader/power
CTCaer 5f142b4c86 main: Add empty battery screen
This disables low battery monitor shutdown (LBM shutdown) on boot and checks if battery is enough.

The logic is as follows:

If battery is not enough:
- If not charging and 15s pass, it will re enable LBM shutdown and power off.
- If charging, it will wait until it is charged above the limit.
 Screen will auto turn off to save power. A press on Power button or a change on charger, will enable it for another 15s.

If battery is enough:
- Enables LBM shutdown and continues with the boot process.
2020-04-06 05:54:45 +03:00
..
bq24193.c refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
bq24193.h refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
max7762x.c main: Add empty battery screen 2020-04-06 05:54:45 +03:00
max7762x.h main: Add empty battery screen 2020-04-06 05:54:45 +03:00
max17050.c refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
max17050.h Update and add missing copyrights 2020-03-14 09:24:24 +02:00
max77620.h pmic: Enable Low Battery Shutdown for 2.8V 2019-12-04 22:06:34 +02:00