aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf52840/src/bin
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-05-15 00:38:58 +0200
committerDario Nieuwenhuis <[email protected]>2023-05-15 00:53:30 +0200
commit26d7610554f262c2c25f99fb441e6dbd6abec61f (patch)
treeac3c3f548960824a5dbc603b58225132859f03ba /examples/nrf52840/src/bin
parent6e93d193cfdd2982410e106c383ecc1f066fccfb (diff)
net: do not use smoltcp Instant/Duration in public API.
Diffstat (limited to 'examples/nrf52840/src/bin')
-rw-r--r--examples/nrf52840/src/bin/usb_ethernet.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/nrf52840/src/bin/usb_ethernet.rs b/examples/nrf52840/src/bin/usb_ethernet.rs
index b8a72313a..786025c43 100644
--- a/examples/nrf52840/src/bin/usb_ethernet.rs
+++ b/examples/nrf52840/src/bin/usb_ethernet.rs
@@ -132,7 +132,7 @@ async fn main(spawner: Spawner) {
132 132
133 loop { 133 loop {
134 let mut socket = TcpSocket::new(stack, &mut rx_buffer, &mut tx_buffer); 134 let mut socket = TcpSocket::new(stack, &mut rx_buffer, &mut tx_buffer);
135 socket.set_timeout(Some(embassy_net::SmolDuration::from_secs(10))); 135 socket.set_timeout(Some(embassy_time::Duration::from_secs(10)));
136 136
137 info!("Listening on TCP:1234..."); 137 info!("Listening on TCP:1234...");
138 if let Err(e) = socket.accept(1234).await { 138 if let Err(e) = socket.accept(1234).await {