Skip to content

Commit 9a70eeb

Browse files
committed
Added new network scanner!
1 parent 1829b4d commit 9a70eeb

File tree

3 files changed

+431
-7
lines changed

3 files changed

+431
-7
lines changed

app_rust/src/commapi/protocols/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ pub trait ProtocolServer: Sized {
177177
if tmp_res[0] == 0x7F && tmp_res[2] == 0x78 { // ResponsePending
178178
println!("KWP2000 - ECU is processing request - Waiting!");
179179
let start = Instant::now();
180-
while start.elapsed().as_millis() < 500 {
180+
while start.elapsed().as_millis() < 1000 {
181181
// ECU is sending a response, but its busy right now. just gotta wait for the ECU to give us its response!
182182
if let Some(msg) = server.read_iso15765_packets(0, 1)?.get(0) {
183183
tmp_res = msg.data.clone();

app_rust/src/windows/diag_home.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ impl DiagHome {
9393
if let Some(ref manual) = self.manual_mode {
9494
manual.subscription().map(DiagHomeMessage::ManualSession)
9595
} else if let Some(ref scan) = self.scan_mode {
96-
todo!()
96+
//todo!()
97+
Subscription::none()
9798
} else {
9899
Subscription::none()
99100
}

0 commit comments

Comments
 (0)