diff --git a/SmartEVSE-3/src/evse.cpp b/SmartEVSE-3/src/evse.cpp index 30958315..7c2c799c 100644 --- a/SmartEVSE-3/src/evse.cpp +++ b/SmartEVSE-3/src/evse.cpp @@ -910,7 +910,7 @@ char IsCurrentAvailable(void) { if ((ActiveEVSE * (MinCurrent * 10) + Baseload) > (MaxMains * 10)) { return 0; // Not enough current available!, return with error } - if ((ActiveEVSE * (MinCurrent * 10) + Baseload) > (MaxCircuit * 10) - Baseload_EV) { + if ((ActiveEVSE * (MinCurrent * 10) + Baseload_EV) > (MaxCircuit * 10)) { return 0; // Not enough current available!, return with error } //assume the current should be available on all 3 phases