diff options
| author | Andres Oliva <[email protected]> | 2023-10-11 23:42:40 +0200 |
|---|---|---|
| committer | Andres Oliva <[email protected]> | 2023-10-11 23:42:40 +0200 |
| commit | 032b1f2d5976422b12e5cb023de939e5a1cd0c37 (patch) | |
| tree | 413d45449467402469d7beeba459b163077ff701 | |
| parent | f76d50e837cab098cd255c15ee0655c8d3ffb55b (diff) | |
Fix some issues with unused stuff
| -rw-r--r-- | embassy-stm32/src/i2c/v2.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-stm32/src/i2c/v2.rs b/embassy-stm32/src/i2c/v2.rs index 926a3f7a1..8a7fa6a9f 100644 --- a/embassy-stm32/src/i2c/v2.rs +++ b/embassy-stm32/src/i2c/v2.rs | |||
| @@ -74,6 +74,7 @@ impl State { | |||
| 74 | 74 | ||
| 75 | pub struct I2c<'d, T: Instance, TXDMA = NoDma, RXDMA = NoDma> { | 75 | pub struct I2c<'d, T: Instance, TXDMA = NoDma, RXDMA = NoDma> { |
| 76 | _peri: PeripheralRef<'d, T>, | 76 | _peri: PeripheralRef<'d, T>, |
| 77 | #[allow(dead_code)] | ||
| 77 | tx_dma: PeripheralRef<'d, TXDMA>, | 78 | tx_dma: PeripheralRef<'d, TXDMA>, |
| 78 | #[allow(dead_code)] | 79 | #[allow(dead_code)] |
| 79 | rx_dma: PeripheralRef<'d, RXDMA>, | 80 | rx_dma: PeripheralRef<'d, RXDMA>, |
| @@ -432,6 +433,7 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> { | |||
| 432 | result | 433 | result |
| 433 | } | 434 | } |
| 434 | 435 | ||
| 436 | #[cfg(feature = "time")] | ||
| 435 | async fn write_dma_internal( | 437 | async fn write_dma_internal( |
| 436 | &mut self, | 438 | &mut self, |
| 437 | address: u8, | 439 | address: u8, |
| @@ -522,6 +524,7 @@ impl<'d, T: Instance, TXDMA, RXDMA> I2c<'d, T, TXDMA, RXDMA> { | |||
| 522 | Ok(()) | 524 | Ok(()) |
| 523 | } | 525 | } |
| 524 | 526 | ||
| 527 | #[cfg(feature = "time")] | ||
| 525 | async fn read_dma_internal( | 528 | async fn read_dma_internal( |
| 526 | &mut self, | 529 | &mut self, |
| 527 | address: u8, | 530 | address: u8, |
