Skip to content

Commit

Permalink
Provided fix if both payment options are disabled in the EvseManager (#…
Browse files Browse the repository at this point in the history
…597)

Signed-off-by: Sebastian Lukas <[email protected]>
Co-authored-by: Kai Hermann <[email protected]>
  • Loading branch information
SebaLukas and hikinggrass authored Apr 2, 2024
1 parent c284515 commit 46aab34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/EvseManager/EvseManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ void EvseManager::ready() {
if (config.payment_enable_contract) {
payment_options.push_back(types::iso15118_charger::PaymentOption::Contract);
}
if (config.payment_enable_eim == false and config.payment_enable_contract == false) {
EVLOG_warning << "Both payment options are disabled! ExternalPayment is nevertheless enabled in this case.";
payment_options.push_back(types::iso15118_charger::PaymentOption::ExternalPayment);
}
r_hlc[0]->call_session_setup(payment_options, config.payment_enable_contract);

r_hlc[0]->subscribe_dlink_error([this] {
Expand Down Expand Up @@ -720,6 +724,11 @@ void EvseManager::ready() {
if (config.payment_enable_contract) {
payment_options.push_back(types::iso15118_charger::PaymentOption::Contract);
}
if (config.payment_enable_eim == false and config.payment_enable_contract == false) {
EVLOG_warning
<< "Both payment options are disabled! ExternalPayment is nevertheless enabled in this case.";
payment_options.push_back(types::iso15118_charger::PaymentOption::ExternalPayment);
}
r_hlc[0]->call_session_setup(payment_options, config.payment_enable_contract);
}
});
Expand Down

0 comments on commit 46aab34

Please sign in to comment.