CurtRod / SimpleEVSE-WiFi

Brings EVSE WB/DIN into your WiFi
https://www.evse-wifi.de
78 stars 31 forks source link

Charge duration not correct when using 'always active'-mode #40

Closed rtfmjoey closed 4 years ago

rtfmjoey commented 4 years ago

When using the 'always active' mode of version 0.3.0 the charge duration is not calculated correctly because 'millisStopCharging = millis();' is only executed when not in always active mode.

After changing line 782-785 from

   if (vehicleCharging) {  // EV interrupted charging
      vehicleCharging = false;
      toDeactivateEVSE = true;
    }

to

    if (vehicleCharging) {  // EV interrupted charging
      vehicleCharging = false;
      toDeactivateEVSE = true;
      millisStopCharging = millis();
    }

calculation is done correctly in always active mode.

CurtRod commented 4 years ago

I've seen that too. Will be corrected in the next few days with update to 0.3.1.

rtfmjoey commented 4 years ago

Issue was resolved succesfully in 0.3.1