Skip to content

Commit

Permalink
Added new network scanner!
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Feb 10, 2021
1 parent 7549f1f commit b09f1bd
Show file tree
Hide file tree
Showing 3 changed files with 431 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app_rust/src/commapi/protocols/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ pub trait ProtocolServer: Sized {
if tmp_res[0] == 0x7F && tmp_res[2] == 0x78 { // ResponsePending
println!("KWP2000 - ECU is processing request - Waiting!");
let start = Instant::now();
while start.elapsed().as_millis() < 500 {
while start.elapsed().as_millis() < 1000 {
// ECU is sending a response, but its busy right now. just gotta wait for the ECU to give us its response!
if let Some(msg) = server.read_iso15765_packets(0, 1)?.get(0) {
tmp_res = msg.data.clone();
Expand Down
3 changes: 2 additions & 1 deletion app_rust/src/windows/diag_home.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ impl DiagHome {
if let Some(ref manual) = self.manual_mode {
manual.subscription().map(DiagHomeMessage::ManualSession)
} else if let Some(ref scan) = self.scan_mode {
todo!()
//todo!()
Subscription::none()
} else {
Subscription::none()
}
Expand Down
Loading

0 comments on commit b09f1bd

Please sign in to comment.