Skip to content

Commit

Permalink
D20 dynamic mode works now for IsoMux
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Lukas <[email protected]>
  • Loading branch information
SebaLukas committed Oct 15, 2024
1 parent 8271d60 commit 3ce818f
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions modules/IsoMux/charger/ISO15118_chargerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,36 @@ void ISO15118_chargerImpl::init() {
publish_display_parameters(o);
}
});

mod->r_iso20->subscribe_d20_dc_dynamic_charge_mode([this](const auto o) {
if (mod->selected_iso20()) {
publish_d20_dc_dynamic_charge_mode(o);
}
});

mod->r_iso2->subscribe_dc_ev_present_voltage([this](const auto o) {
if (not mod->selected_iso20()) {
publish_dc_ev_present_voltage(o);
}
});

mod->r_iso20->subscribe_dc_ev_present_voltage([this](const auto o) {
if (mod->selected_iso20()) {
publish_dc_ev_present_voltage(o);
}
});

mod->r_iso2->subscribe_meter_info_requested([this]() {
if (not mod->selected_iso20()) {
publish_meter_info_requested(nullptr);
}
});

mod->r_iso20->subscribe_meter_info_requested([this]() {
if (mod->selected_iso20()) {
publish_meter_info_requested(nullptr);
}
});
}

void ISO15118_chargerImpl::ready() {
Expand Down

0 comments on commit 3ce818f

Please sign in to comment.