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 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs index 6d03d6263..feb0f5b7d 100644 --- a/embassy-embedded-hal/src/shared_bus/blocking/spi.rs +++ b/embassy-embedded-hal/src/shared_bus/blocking/spi.rs | |||
| @@ -163,7 +163,7 @@ where | |||
| 163 | fn transaction(&mut self, operations: &mut [Operation<'_, u8>]) -> Result<(), Self::Error> { | 163 | fn transaction(&mut self, operations: &mut [Operation<'_, u8>]) -> Result<(), Self::Error> { |
| 164 | self.bus.lock(|bus| { | 164 | self.bus.lock(|bus| { |
| 165 | let mut bus = bus.borrow_mut(); | 165 | let mut bus = bus.borrow_mut(); |
| 166 | bus.set_config(&self.config); | 166 | bus.set_config(&self.config).map_err(|_| SpiDeviceError::Config)?; |
| 167 | self.cs.set_low().map_err(SpiDeviceError::Cs)?; | 167 | self.cs.set_low().map_err(SpiDeviceError::Cs)?; |
| 168 | 168 | ||
| 169 | let op_res = operations.iter_mut().try_for_each(|op| match op { | 169 | let op_res = operations.iter_mut().try_for_each(|op| match op { |
