Skip to content

Commit

Permalink
Update ENET example to RTIC v2
Browse files Browse the repository at this point in the history
  • Loading branch information
mciantyre committed Oct 27, 2024
1 parent 393ea5d commit 871dff9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/rtic_enet_dhcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ mod app {
struct Shared {}

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

let delay = hal::timer::Blocking::<_, { board::GPT1_FREQUENCY }>::from_gpt(gpt1);
Expand All @@ -72,7 +72,6 @@ mod app {
enet: Some(enet),
led,
},
init::Monotonics(),
)
}

Expand All @@ -97,6 +96,7 @@ mod app {
socket_buffer,
msg,
udp_tx_meta,
..
} = cx.local;
let enet = enet.take().unwrap();

Expand Down

0 comments on commit 871dff9

Please sign in to comment.