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/stm32h7 | |
| parent | 6e93d193cfdd2982410e106c383ecc1f066fccfb (diff) | |
net: do not use smoltcp Instant/Duration in public API.
Diffstat (limited to 'examples/stm32h7')
| -rw-r--r-- | examples/stm32h7/src/bin/eth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/stm32h7/src/bin/eth.rs b/examples/stm32h7/src/bin/eth.rs index 541e49762..61bb7e37b 100644 --- a/examples/stm32h7/src/bin/eth.rs +++ b/examples/stm32h7/src/bin/eth.rs | |||
| @@ -92,7 +92,7 @@ async fn main(spawner: Spawner) -> ! { | |||
| 92 | loop { | 92 | loop { |
| 93 | let mut socket = TcpSocket::new(&stack, &mut rx_buffer, &mut tx_buffer); | 93 | let mut socket = TcpSocket::new(&stack, &mut rx_buffer, &mut tx_buffer); |
| 94 | 94 | ||
| 95 | socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10))); | 95 | socket.set_timeout(Some(embassy_time::Duration::from_secs(10))); |
| 96 | 96 | ||
| 97 | let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000); | 97 | let remote_endpoint = (Ipv4Address::new(10, 42, 0, 1), 8000); |
| 98 | info!("connecting..."); | 98 | info!("connecting..."); |
