From cabb8cd33a50e98c6229801aca9496332a9d6589 Mon Sep 17 00:00:00 2001 From: CTCaer Date: Sun, 15 Nov 2020 14:49:54 +0200 Subject: [PATCH] Allow booting on damaged fuel gauge --- bootloader/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootloader/main.c b/bootloader/main.c index 6884f6b..6bf06ed 100644 --- a/bootloader/main.c +++ b/bootloader/main.c @@ -1224,7 +1224,7 @@ static void _show_errors() static void _check_low_battery() { int enough_battery; - int batt_volt = 3500; + int batt_volt = 0; int charge_status = 0; bq24193_get_property(BQ24193_ChargeStatus, &charge_status); @@ -1232,7 +1232,7 @@ static void _check_low_battery() enough_battery = charge_status ? 3250 : 3000; - if (batt_volt > enough_battery) + if (batt_volt > enough_battery || !batt_volt) goto out; // Prepare battery icon resources.