Skip to content

Commit

Permalink
fix: everest_api/evse_manager/cmd/force_unlock to also stop any trans…
Browse files Browse the repository at this point in the history
…action (#786)

Signed-off-by: James Chapman <[email protected]>
  • Loading branch information
james-ctc authored Jul 17, 2024
1 parent 363e287 commit 7d02eb7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/API/API.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,13 @@ void API::init() {
<< ", error: " << e.what();
}
}
evse->call_force_unlock(connector_id); //
// match processing in ChargePointImpl::handleUnlockConnectorRequest
// so that OCPP UnlockConnector and everest_api/evse_manager/cmd/force_unlock
// perform the same action
types::evse_manager::StopTransactionRequest req;
req.reason = types::evse_manager::StopTransactionReason::UnlockCommand;
evse->call_stop_transaction(req);
evse->call_force_unlock(connector_id);
});

// Check if a uk_random_delay is connected that matches this evse_manager
Expand Down

0 comments on commit 7d02eb7

Please sign in to comment.