Skip to content

Commit

Permalink
fix the example
Browse files Browse the repository at this point in the history
  • Loading branch information
japaric committed Oct 2, 2017
1 parent 2415a64 commit c184f91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/late-resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ app! {
idle: {
// Test that late resources can be used in idle
resources: [IP_ADDRESS],
}
},

tasks: {
SYS_TICK: {
Expand Down Expand Up @@ -76,7 +76,7 @@ fn sys_tick(_t: &mut Threshold, r: SYS_TICK::Resources) {

fn exti0(_t: &mut Threshold, _r: EXTI0::Resources) {}

fn idle() -> ! {
fn idle(_t: &mut Threshold, _r: idle::Resources) -> ! {
loop {
rtfm::wfi();
}
Expand Down

0 comments on commit c184f91

Please sign in to comment.