From a8c760d85f30d493b9869ea11fb92f78315c5107 Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Thu, 16 Nov 2023 08:38:28 -0500 Subject: [PATCH] Update main.c (void) battery_saver --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 21453ea4..72d4d11f 100644 --- a/main.c +++ b/main.c @@ -819,10 +819,10 @@ int main(int argc, char * argv[]) { #ifndef HAB if ((batteryCurrent > currentThreshold) && (batteryVoltage < (voltageThreshold + 0.15)) && !sim_mode) { - battery_saver(ON); + (void)battery_saver(ON); } else if ((battery_saver(CHECK)) && (batteryCurrent < 0)) { - battery_saver(OFF); + (void)battery_saver(OFF); } else if ((batteryCurrent > currentThreshold) && (batteryVoltage < voltageThreshold) && !sim_mode) // currentThreshold ensures that this won't happen when running on DC power. { fprintf(stderr, "Battery voltage too low: %f V - shutting down!\n", batteryVoltage);