diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-05-15 00:38:58 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2023-05-15 00:53:30 +0200 |
| commit | 26d7610554f262c2c25f99fb441e6dbd6abec61f (patch) | |
| tree | ac3c3f548960824a5dbc603b58225132859f03ba /examples/stm32h5/src | |
| parent | 6e93d193cfdd2982410e106c383ecc1f066fccfb (diff) | |
net: do not use smoltcp Instant/Duration in public API.
Diffstat (limited to 'examples/stm32h5/src')
| -rw-r--r-- | examples/stm32h5/src/bin/eth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h5/src/bin/eth.rs b/examples/stm32h5/src/bin/eth.rs index 6d650da9e..b2e252fc7 100644 --- a/examples/stm32h5/src/bin/eth.rs +++ b/examples/stm32h5/src/bin/eth.rs | |||
| @@ -110,7 +110,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 110 | loop { | 110 | loop { |
| 111 | let mut socket = TcpSocket::new(&stack, &mut rx_buffer, &mut tx_buffer); | 111 | let mut socket = TcpSocket::new(&stack, &mut rx_buffer, &mut tx_buffer); |
| 112 | 112 | ||
| 113 | socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10))); | 113 | socket.set_timeout(Some(embassy_time::Duration::from_secs(10))); |
| 114 | 114 | ||
| 115 | let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000); | 115 | let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000); |
| 116 | info!("connecting..."); | 116 | info!("connecting..."); |
