File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void CurrentShaperTask::setup() {
1818}
1919
2020unsigned long CurrentShaperTask::loop (MicroTasks::WakeReason reason) {
21- if (_enabled) {
21+ if (_enabled && !_evse-> clientHasClaim (EvseClient_OpenEVSE_Divert) ) {
2222 EvseProperties props;
2323 if (_changed) {
2424 props.setChargeCurrent (_chg_cur);
@@ -104,11 +104,8 @@ void CurrentShaperTask::setState(bool state) {
104104}
105105
106106void CurrentShaperTask::shapeCurrent () {
107- // only use Shaper if there's no Divert claim active ( means divert is active)
108- if (!_evse->clientHasClaim (EvseClient_OpenEVSE_Divert)) {
109107 _chg_cur = round (((_max_pwr - _live_pwr) / evse.getVoltage ()) + (evse.getAmps ()));
110108 _changed = true ;
111- }
112109}
113110
114111int CurrentShaperTask::getMaxPwr () {
You can’t perform that action at this time.
0 commit comments