remove old stuff
This commit is contained in:
@@ -179,9 +179,6 @@ impl SensorImpl {
|
||||
can_power.set_high();
|
||||
let mut config = twai_config.take().expect("twai config not set");
|
||||
let mut as_async = config.into_async().start();
|
||||
Timer::after_millis(10).await;
|
||||
|
||||
|
||||
// Give CAN some time to stabilize
|
||||
Timer::after_millis(10).await;
|
||||
|
||||
@@ -239,9 +236,6 @@ impl SensorImpl {
|
||||
}
|
||||
}
|
||||
|
||||
// Wait for acknowledgements on the bus (stub: just wait 5 seconds)
|
||||
Timer::after_millis(5_000).await;
|
||||
// Stop CAN and power down
|
||||
let config = as_async.stop().into_blocking();
|
||||
can_power.set_low();
|
||||
twai_config.replace(config);
|
||||
|
Reference in New Issue
Block a user