diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-11-29 16:37:07 +0100 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-11-29 17:01:36 +0100 |
| commit | 4634316749c41dd5d8cc2f316033c9098369ed2f (patch) | |
| tree | 1992bf003d6afcdeae926db2308f369bccfc42ea /embassy-embedded-hal/src/shared_bus/mod.rs | |
| parent | 1b9925e3da0ec42b770f736cd22325203c97cb47 (diff) | |
Update embedded-(hal,io,nal).
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/mod.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/mod.rs | 6 |
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 | } |
