diff options
| author | nikvoid <[email protected]> | 2025-01-22 18:11:32 +0200 |
|---|---|---|
| committer | nikvoid <[email protected]> | 2025-01-22 18:11:32 +0200 |
| commit | dff8be9bb6b02c0162bcc595df34b0bc0c3e0e83 (patch) | |
| tree | 54fda99b085f13607ab6aaed89d0be08b7346cc6 /embassy-stm32 | |
| parent | 83ccbf48d70859b881f459e9c294acce213ac0d9 (diff) | |
run rustfmt
Diffstat (limited to 'embassy-stm32')
| -rw-r--r-- | embassy-stm32/src/eth/generic_smi.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/embassy-stm32/src/eth/generic_smi.rs b/embassy-stm32/src/eth/generic_smi.rs index acd793958..41d19e921 100644 --- a/embassy-stm32/src/eth/generic_smi.rs +++ b/embassy-stm32/src/eth/generic_smi.rs | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | use core::task::Context; | 3 | use core::task::Context; |
| 4 | 4 | ||
| 5 | #[cfg(feature = "time")] | 5 | #[cfg(feature = "time")] |
| 6 | use embassy_time::{Duration, Timer, Delay}; | 6 | use embassy_time::{Delay, Duration, Timer}; |
| 7 | #[cfg(feature = "time")] | 7 | #[cfg(feature = "time")] |
| 8 | use futures_util::FutureExt; | 8 | use futures_util::FutureExt; |
| 9 | 9 | ||
| @@ -80,7 +80,7 @@ unsafe impl PHY for GenericSMI { | |||
| 80 | } | 80 | } |
| 81 | panic!("PHY did not respond"); | 81 | panic!("PHY did not respond"); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | sm.smi_write(self.phy_addr, PHY_REG_BCR, PHY_REG_BCR_RESET); | 84 | sm.smi_write(self.phy_addr, PHY_REG_BCR, PHY_REG_BCR_RESET); |
| 85 | while sm.smi_read(self.phy_addr, PHY_REG_BCR) & PHY_REG_BCR_RESET == PHY_REG_BCR_RESET {} | 85 | while sm.smi_read(self.phy_addr, PHY_REG_BCR) & PHY_REG_BCR_RESET == PHY_REG_BCR_RESET {} |
| 86 | } | 86 | } |
