Skip to content

Commit

Permalink
restore battery log
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor committed Mar 6, 2021
1 parent 6b16b6d commit 5fbd5d3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions sd-bootloader-ng/bootmanager/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,17 +480,9 @@ static void checkBattery() {
return;

uint16_t batteryLevel = getBatteryLevel();
Logger_debug("Battery level is %i, threshold %i", batteryLevel, Config_generalSettings.minBatteryLevel);

if (isChargerConnected()) {
Logger_debug("Charger is connected");
return;
}
Logger_debug("Charger is not connected");


if (batteryLevel < Config_generalSettings.minBatteryLevel) {
Logger_error("Battery level is too low, goto hibernation...");
Logger_debug("Battery level is %i, threshold %i, goto hibernation...", batteryLevel, Config_generalSettings.minBatteryLevel);
prebootmgr_blink_error(2, 66);
prebootmgr_blink_error(2, 133);
prebootmgr_blink_error(2, 66);
Expand Down

0 comments on commit 5fbd5d3

Please sign in to comment.