aboutsummaryrefslogtreecommitdiff
path: root/examples/stm32f4/src/bin/eth.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/stm32f4/src/bin/eth.rs')
-rw-r--r--examples/stm32f4/src/bin/eth.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/stm32f4/src/bin/eth.rs b/examples/stm32f4/src/bin/eth.rs
index 6a1d4b088..ddf8596ae 100644
--- a/examples/stm32f4/src/bin/eth.rs
+++ b/examples/stm32f4/src/bin/eth.rs
@@ -12,7 +12,7 @@ use embassy_stm32::peripherals::ETH;
12use embassy_stm32::rng::Rng; 12use embassy_stm32::rng::Rng;
13use embassy_stm32::time::mhz; 13use embassy_stm32::time::mhz;
14use embassy_stm32::{bind_interrupts, eth, peripherals, rng, Config}; 14use embassy_stm32::{bind_interrupts, eth, peripherals, rng, Config};
15use embassy_time::{Duration, Timer}; 15use embassy_time::Timer;
16use embedded_io_async::Write; 16use embedded_io_async::Write;
17use static_cell::make_static; 17use static_cell::make_static;
18use {defmt_rtt as _, panic_probe as _}; 18use {defmt_rtt as _, panic_probe as _};
@@ -99,7 +99,7 @@ async fn main(spawner: Spawner) -> ! {
99 let r = socket.connect(remote_endpoint).await; 99 let r = socket.connect(remote_endpoint).await;
100 if let Err(e) = r { 100 if let Err(e) = r {
101 info!("connect error: {:?}", e); 101 info!("connect error: {:?}", e);
102 Timer::after(Duration::from_secs(1)).await; 102 Timer::after_secs(1).await;
103 continue; 103 continue;
104 } 104 }
105 info!("connected!"); 105 info!("connected!");
@@ -110,7 +110,7 @@ async fn main(spawner: Spawner) -> ! {
110 info!("write error: {:?}", e); 110 info!("write error: {:?}", e);
111 break; 111 break;
112 } 112 }
113 Timer::after(Duration::from_secs(1)).await; 113 Timer::after_secs(1).await;
114 } 114 }
115 } 115 }
116} 116}