Compare commits

..

1 commit

Author SHA1 Message Date
12f144b959 arc 2021-12-28 15:28:08 -05:00

View file

@ -24,7 +24,8 @@ fn main() {
.build()
.expect("Could not construct LED Controller.");
loop {
let lights = lock.read().expect("Could not read array lock.");
let lock_c = Arc::clone(&lock);
let lights = lock_c.read().expect("Could not read array lock.");
run_lights(&mut controller, &lights).expect("Error running lights controller.");
}
});