Skip to content

Commit

Permalink
Diag - Session control always on ECU ID
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Mar 15, 2024
1 parent acb2718 commit 8255a7c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/dynamic_diag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,15 +324,6 @@ impl DynamicDiagSession {
DiagAction::SetSessionMode(mode) => {
let mut needs_response = true;
let mut ext_id = None;
if let Some(adv) = advanced_opts {
if adv.global_session_control && adv.global_tp_id != 0 {
tx_addr = adv.global_tp_id;
ext_id = adv.tp_ext_id;
needs_response = false;
} else if adv.global_session_control && adv.global_tp_id == 0 {
log::warn!("Global session control is enabled but global TP ID is not specified");
}
}
let res = send_recv_ecu_req::<P, NRC, L>(
tx_addr,
rx_addr,
Expand Down

0 comments on commit 8255a7c

Please sign in to comment.