diff options
| -rw-r--r-- | embassy-nrf/src/twim.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/embassy-nrf/src/twim.rs b/embassy-nrf/src/twim.rs index 708a69082..bfce00f1b 100644 --- a/embassy-nrf/src/twim.rs +++ b/embassy-nrf/src/twim.rs | |||
| @@ -85,8 +85,6 @@ pub enum Error { | |||
| 85 | Overrun, | 85 | Overrun, |
| 86 | /// Timeout error. | 86 | /// Timeout error. |
| 87 | Timeout, | 87 | Timeout, |
| 88 | /// Bus error. | ||
| 89 | Bus, | ||
| 90 | } | 88 | } |
| 91 | 89 | ||
| 92 | /// Interrupt handler. | 90 | /// Interrupt handler. |
| @@ -350,7 +348,7 @@ impl<'d, T: Instance> Twim<'d, T> { | |||
| 350 | if let Err(e) = Self::check_errorsrc() { | 348 | if let Err(e) = Self::check_errorsrc() { |
| 351 | return Poll::Ready(Err(e)); | 349 | return Poll::Ready(Err(e)); |
| 352 | } else { | 350 | } else { |
| 353 | return Poll::Ready(Err(Error::Bus)); | 351 | panic!("Found events_error bit without an error in errorsrc reg"); |
| 354 | } | 352 | } |
| 355 | } | 353 | } |
| 356 | 354 | ||
| @@ -917,7 +915,6 @@ impl embedded_hal_1::i2c::Error for Error { | |||
| 917 | } | 915 | } |
| 918 | Self::Overrun => embedded_hal_1::i2c::ErrorKind::Overrun, | 916 | Self::Overrun => embedded_hal_1::i2c::ErrorKind::Overrun, |
| 919 | Self::Timeout => embedded_hal_1::i2c::ErrorKind::Other, | 917 | Self::Timeout => embedded_hal_1::i2c::ErrorKind::Other, |
| 920 | Self::Bus => embedded_hal_1::i2c::ErrorKind::Other, | ||
| 921 | } | 918 | } |
| 922 | } | 919 | } |
| 923 | } | 920 | } |
