Skip to content

Commit

Permalink
evse.cpp: Fix for subpanel charging
Browse files Browse the repository at this point in the history
  • Loading branch information
dingo35 committed Dec 16, 2023
1 parent fda2e24 commit 0aee5fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SmartEVSE-3/src/evse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0aee5fd

Please sign in to comment.