Skip to content

Commit 9e3cbbf

Browse files
committed
Initialise the EVSE state to active on startup
This makes sure the button knows the correct state when toggling. Fixes DEV V4.0: Pysical push button override #147
1 parent bf304ff commit 9e3cbbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/evse_man.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,10 @@ EvseManager::EvseManager(Stream &port) :
128128
_clients(),
129129
_evseStateListener(this),
130130
_sessionCompleteListener(this),
131-
_targetProperties(),
131+
_targetProperties(EvseState::Active),
132132
_hasClaims(false),
133133
_sleepForDisable(true),
134-
_evaluateClaims(false),
134+
_evaluateClaims(true),
135135
_evaluateTargetState(false),
136136
_waitingForEvent(0)
137137
{

0 commit comments

Comments
 (0)