Skip to content

Commit 871dff9

Browse files
committed
Update ENET example to RTIC v2
1 parent 393ea5d commit 871dff9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/rtic_enet_dhcp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ mod app {
6060
struct Shared {}
6161

6262
#[init]
63-
fn init(_: init::Context) -> (Shared, Local, init::Monotonics) {
63+
fn init(_: init::Context) -> (Shared, Local) {
6464
let (board::Common { gpt1, .. }, board::Specifics { led, enet, .. }) = board::new();
6565

6666
let delay = hal::timer::Blocking::<_, { board::GPT1_FREQUENCY }>::from_gpt(gpt1);
@@ -72,7 +72,6 @@ mod app {
7272
enet: Some(enet),
7373
led,
7474
},
75-
init::Monotonics(),
7675
)
7776
}
7877

@@ -97,6 +96,7 @@ mod app {
9796
socket_buffer,
9897
msg,
9998
udp_tx_meta,
99+
..
100100
} = cx.local;
101101
let enet = enet.take().unwrap();
102102

0 commit comments

Comments
 (0)