diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-09-21 22:05:01 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-21 22:05:01 +0000 |
| commit | 4b20e6c258631fb1bfe2f00d9e7e590b5472e794 (patch) | |
| tree | daa4050b6dd0bf7ecfae113c51ad2b21fe74e914 /examples/stm32f7/src | |
| parent | e313ca4ae8bb4b7ab5dc4c348a471ccc5745b599 (diff) | |
| parent | 83b4c0127337c55c6a445abee6ab5eac4c993f9c (diff) | |
Merge pull request #1927 from embassy-rs/stm32-rcc-unify-h
stm32/rcc: unify h5 and h7.
Diffstat (limited to 'examples/stm32f7/src')
| -rw-r--r-- | examples/stm32f7/src/bin/eth.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32f7/src/bin/eth.rs b/examples/stm32f7/src/bin/eth.rs index 01c38106e..93c97c8ee 100644 --- a/examples/stm32f7/src/bin/eth.rs +++ b/examples/stm32f7/src/bin/eth.rs | |||
| @@ -101,6 +101,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 101 | let r = socket.connect(remote_endpoint).await; | 101 | let r = socket.connect(remote_endpoint).await; |
| 102 | if let Err(e) = r { | 102 | if let Err(e) = r { |
| 103 | info!("connect error: {:?}", e); | 103 | info!("connect error: {:?}", e); |
| 104 | Timer::after(Duration::from_secs(1)).await; | ||
| 104 | continue; | 105 | continue; |
| 105 | } | 106 | } |
| 106 | info!("connected!"); | 107 | info!("connected!"); |
| @@ -109,7 +110,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 109 | let r = socket.write_all(&buf).await; | 110 | let r = socket.write_all(&buf).await; |
| 110 | if let Err(e) = r { | 111 | if let Err(e) = r { |
| 111 | info!("write error: {:?}", e); | 112 | info!("write error: {:?}", e); |
| 112 | continue; | 113 | break; |
| 113 | } | 114 | } |
| 114 | Timer::after(Duration::from_secs(1)).await; | 115 | Timer::after(Duration::from_secs(1)).await; |
| 115 | } | 116 | } |
