Skip to content

Commit

Permalink
Move Deuathorized event in EvseManager so that its only published in …
Browse files Browse the repository at this point in the history
…case session is currently active

Signed-off-by: Piet Gömpel <[email protected]>
  • Loading branch information
Pietfried committed Jan 13, 2025
1 parent 1c6acc0 commit 53d86a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/EvseManager/Charger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1418,8 +1418,8 @@ bool Charger::deauthorize() {
}

bool Charger::deauthorize_internal() {
signal_simple_event(types::evse_manager::SessionEventEnum::Deauthorized);
if (shared_context.session_active) {
signal_simple_event(types::evse_manager::SessionEventEnum::Deauthorized);
auto s = shared_context.current_state;

if (s == EvseState::Disabled or s == EvseState::Idle or s == EvseState::WaitingForAuthentication) {
Expand Down

0 comments on commit 53d86a8

Please sign in to comment.