From f2adba108af574dd7d8ff971cacbe621e27b0091 Mon Sep 17 00:00:00 2001 From: Paul van Tilburg Date: Fri, 20 Dec 2019 13:34:23 +0100 Subject: [PATCH] Reorder the task attributes for clearity --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9a2078f..0e86ef5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -136,7 +136,7 @@ const APP: () = { } /// Task that advances the LED ring one step and schedules the next trigger (if enabled). - #[task(schedule = [cycle_leds], resources = [led_ring])] + #[task(resources = [led_ring], schedule = [cycle_leds])] fn cycle_leds(mut cx: cycle_leds::Context) { let reschedule = cx.resources.led_ring.lock(|led_ring| { if led_ring.is_mode_cycle() { @@ -156,7 +156,7 @@ const APP: () = { /// Task that performs an accelerometers measurement and adjusts the LED ring accordingly /// and schedules the next trigger (if enabled). - #[task(schedule = [accel_leds], resources = [accel, accel_cs, led_ring, serial_tx])] + #[task(resources = [accel, accel_cs, led_ring, serial_tx], schedule = [accel_leds])] fn accel_leds(mut cx: accel_leds::Context) { cx.resources.accel_cs.set_low().unwrap(); let read_command = (1 << 7) | (1 << 6) | 0x29;