Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provided fix if both payment options are disabled in the EvseManager #597

Merged
merged 2 commits into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading