Fix undervoltage error flag reporting

Load shedding should only trigger capacity calculation, but not set the
undervoltage flag. That flag is only set for voltage below absolute min.
This commit is contained in:
Martin Jäger
2020-05-11 14:09:27 +02:00
parent 1bd8734a2e
commit 882f281333
-1
View File
@@ -309,7 +309,6 @@ void Charger::discharge_control(BatConf *bat_conf)
if (flags_check(&load.error_flags, ERR_LOAD_SHEDDING)) {
empty = true;
num_deep_discharges++;
dev_stat.set_error(ERR_BAT_UNDERVOLTAGE);
if (usable_capacity == 0.0F) {
// reset to measured value if discharged the first time