Run cargo fmt
This commit is contained in:
parent
cf5238f4f4
commit
2da5ca7117
|
@ -128,9 +128,7 @@ const APP: () = {
|
||||||
resources.led_ring.lock(|led_ring| {
|
resources.led_ring.lock(|led_ring| {
|
||||||
if led_ring.is_mode_cycle() {
|
if led_ring.is_mode_cycle() {
|
||||||
led_ring.advance();
|
led_ring.advance();
|
||||||
schedule
|
schedule.cycle_leds(scheduled + PERIOD.cycles()).unwrap();
|
||||||
.cycle_leds(scheduled + PERIOD.cycles())
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -157,9 +155,7 @@ const APP: () = {
|
||||||
if led_ring.is_mode_accel() {
|
if led_ring.is_mode_accel() {
|
||||||
let directions = [acc_y < 0, acc_x < 0, acc_y > 0, acc_x > 0];
|
let directions = [acc_y < 0, acc_x < 0, acc_y > 0, acc_x > 0];
|
||||||
led_ring.specific_on(directions);
|
led_ring.specific_on(directions);
|
||||||
schedule
|
schedule.accel_leds(scheduled + PERIOD.cycles()).unwrap();
|
||||||
.accel_leds(scheduled + PERIOD.cycles())
|
|
||||||
.unwrap();
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue