You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: embedded-hal-bus/src/spi/mod.rs
+9
Original file line number
Diff line number
Diff line change
@@ -35,3 +35,12 @@ where
35
35
}
36
36
}
37
37
}
38
+
39
+
/// Dummy `DelayUs` implementation that panics on use.
40
+
pubstructNoDelay;
41
+
42
+
impl embedded_hal::delay::DelayUsforNoDelay{
43
+
fndelay_us(&mutself,_us:u32){
44
+
panic!("You've tried to execute a SPI transaction containing a `Operation::Delay` in a `SpiDevice` created with `new_no_delay()`. Create it with `new()` instead, passing a `DelayUs` implementation.")
0 commit comments