diff options
Diffstat (limited to 'embassy-embedded-hal/src/shared_bus/blocking/spi.rs')
| -rw-r--r-- | embassy-embedded-hal/src/shared_bus/blocking/spi.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs index eb9c0c4f4..ffe2aa1c6 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs | |||
| @@ -82,11 +82,11 @@ where | |||
| 82 | let flush_res = bus.flush(); | 82 | let flush_res = bus.flush(); |
| 83 | let cs_res = self.cs.set_high(); | 83 | let cs_res = self.cs.set_high(); |
| 84 | 84 | ||
| 85 | let op_res = op_res.map_err(SpiDeviceError::Spi)?; | 85 | op_res.map_err(SpiDeviceError::Spi)?; |
| 86 | flush_res.map_err(SpiDeviceError::Spi)?; | 86 | flush_res.map_err(SpiDeviceError::Spi)?; |
| 87 | cs_res.map_err(SpiDeviceError::Cs)?; | 87 | cs_res.map_err(SpiDeviceError::Cs)?; |
| 88 | 88 | ||
| 89 | Ok(op_res) | 89 | Ok(()) |
| 90 | }) | 90 | }) |
| 91 | } | 91 | } |
| 92 | } | 92 | } |
| @@ -158,10 +158,10 @@ where | |||
| 158 | let flush_res = bus.flush(); | 158 | let flush_res = bus.flush(); |
| 159 | let cs_res = self.cs.set_high(); | 159 | let cs_res = self.cs.set_high(); |
| 160 | 160 | ||
| 161 | let op_res = op_res.map_err(SpiDeviceError::Spi)?; | 161 | op_res.map_err(SpiDeviceError::Spi)?; |
| 162 | flush_res.map_err(SpiDeviceError::Spi)?; | 162 | flush_res.map_err(SpiDeviceError::Spi)?; |
| 163 | cs_res.map_err(SpiDeviceError::Cs)?; | 163 | cs_res.map_err(SpiDeviceError::Cs)?; |
| 164 | Ok(op_res) | 164 | Ok(()) |
| 165 | }) | 165 | }) |
| 166 | } | 166 | } |
| 167 | } | 167 | } |
