From 31e2f3f964cb8ae517fbad7eaaf7b3069e007357 Mon Sep 17 00:00:00 2001 From: dingo35 Date: Fri, 2 Feb 2024 13:43:44 -0500 Subject: [PATCH] evse.cpp: fix bug when enough power is available --- SmartEVSE-3/src/evse.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SmartEVSE-3/src/evse.cpp b/SmartEVSE-3/src/evse.cpp index c5729d0e..8c9935a7 100644 --- a/SmartEVSE-3/src/evse.cpp +++ b/SmartEVSE-3/src/evse.cpp @@ -885,8 +885,7 @@ char IsCurrentAvailable(void) { // Charging will start after the timeout (chargedelay) period has ended // Only when StartCurrent configured or Node MinCurrent detected or Node inactive if (Mode == MODE_SOLAR) { // no active EVSE yet? - if (ActiveEVSE == 0 && Isum >= ((signed int)StartCurrent *-10)) return 0; - else if ((ActiveEVSE * MinCurrent * 10) > TotalCurrent) return 0; // check if we can split the available current between all active EVSE's + if (ActiveEVSE == 1 && Isum >= ((signed int)StartCurrent *-10)) return 0; } return 1;