aboutsummaryrefslogtreecommitdiff
path: root/embassy-embedded-hal/src/shared_bus/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/mod.rs')
-rw-r--r--embassy-embedded-hal/src/shared_bus/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/mod.rs b/embassy-embedded-hal/src/shared_bus/mod.rs
index b0159ac09..ab96df134 100644
--- a/embassy-embedded-hal/src/shared_bus/mod.rs
+++ b/embassy-embedded-hal/src/shared_bus/mod.rs
@@ -39,8 +39,8 @@ pub enum SpiDeviceError<BUS, CS> {
39 Spi(BUS), 39 Spi(BUS),
40 /// Setting the value of the Chip Select (CS) pin failed. 40 /// Setting the value of the Chip Select (CS) pin failed.
41 Cs(CS), 41 Cs(CS),
42 /// DelayUs operations are not supported when the `time` Cargo feature is not enabled. 42 /// Delay operations are not supported when the `time` Cargo feature is not enabled.
43 DelayUsNotSupported, 43 DelayNotSupported,
44 /// The SPI bus could not be configured. 44 /// The SPI bus could not be configured.
45 Config, 45 Config,
46} 46}
@@ -54,7 +54,7 @@ where
54 match self { 54 match self {
55 Self::Spi(e) => e.kind(), 55 Self::Spi(e) => e.kind(),
56 Self::Cs(_) => spi::ErrorKind::Other, 56 Self::Cs(_) => spi::ErrorKind::Other,
57 Self::DelayUsNotSupported => spi::ErrorKind::Other, 57 Self::DelayNotSupported => spi::ErrorKind::Other,
58 Self::Config => spi::ErrorKind::Other, 58 Self::Config => spi::ErrorKind::Other,
59 } 59 }
60 } 60 }