Skip to content

Commit

Permalink
Merge branch 'main' into update-codeowner
Browse files Browse the repository at this point in the history
  • Loading branch information
Pietfried authored Jun 24, 2024
2 parents cd6ef98 + 42248d8 commit a691f7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interfaces/evse_board_support.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,5 +129,9 @@ vars:
need to be implemented and the returned value is not used in those cases.
type: object
$ref: /board_support_common#/ProximityPilot
request_stop_transaction:
description: Publish to stop the transaction gracefully (e.g. user pressed the stop button)
type: object
$ref: /evse_manager#/StopTransactionRequest
errors:
- reference: /errors/evse_board_support
3 changes: 3 additions & 0 deletions modules/EvseManager/EvseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ void EvseManager::init() {
[this](const auto& caps) { update_powersupply_capabilities(caps); });
}
}

r_bsp->subscribe_request_stop_transaction(
[this](types::evse_manager::StopTransactionRequest r) { charger->cancel_transaction(r); });
}

void EvseManager::ready() {
Expand Down

0 comments on commit a691f7f

Please sign in to comment.