From 5327af95b904e6ce080ad5c9d06b0c2273960dd2 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Fri, 30 Oct 2020 12:58:52 +0100 Subject: Handle batterycharge_too_low() returning -1 properly --- src/common/Core/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Core/main.c b/src/common/Core/main.c index e1ae35d..ae103d5 100644 --- a/src/common/Core/main.c +++ b/src/common/Core/main.c @@ -305,7 +305,7 @@ static void launcher_task(void __attribute__ ((unused))*pvParameters) pio_set_qrp(1); } else { - const uint32_t charge_qrp = batterycharge_too_low(); + const int charge_qrp = batterycharge_too_low(); if (charge_qrp != -1) { if (charge_qrp != last_qrp_from_supply) { -- cgit v1.2.3