File tree Expand file tree Collapse file tree 3 files changed +431
-7
lines changed Expand file tree Collapse file tree 3 files changed +431
-7
lines changed Original file line number Diff line number Diff 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 ( ) ;
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments