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);