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/stm32f4/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/stm32f4/src')
| -rw-r--r-- | examples/stm32f4/src/bin/eth.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/stm32f4/src/bin/eth.rs b/examples/stm32f4/src/bin/eth.rs index 5f1e62d0a..16bf5d949 100644 --- a/examples/stm32f4/src/bin/eth.rs +++ b/examples/stm32f4/src/bin/eth.rs | |||
| @@ -100,6 +100,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 100 | let r = socket.connect(remote_endpoint).await; | 100 | let r = socket.connect(remote_endpoint).await; |
| 101 | if let Err(e) = r { | 101 | if let Err(e) = r { |
| 102 | info!("connect error: {:?}", e); | 102 | info!("connect error: {:?}", e); |
| 103 | Timer::after(Duration::from_secs(1)).await; | ||
| 103 | continue; | 104 | continue; |
| 104 | } | 105 | } |
| 105 | info!("connected!"); | 106 | info!("connected!"); |
| @@ -108,7 +109,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 108 | let r = socket.write_all(&buf).await; | 109 | let r = socket.write_all(&buf).await; |
| 109 | if let Err(e) = r { | 110 | if let Err(e) = r { |
| 110 | info!("write error: {:?}", e); | 111 | info!("write error: {:?}", e); |
| 111 | continue; | 112 | break; |
| 112 | } | 113 | } |
| 113 | Timer::after(Duration::from_secs(1)).await; | 114 | Timer::after(Duration::from_secs(1)).await; |
| 114 | } | 115 | } |
