Compare commits
1 commit
12f144b959
...
0a90a2ca5f
Author | SHA1 | Date | |
---|---|---|---|
0a90a2ca5f |
1 changed files with 1 additions and 2 deletions
|
@ -24,8 +24,7 @@ fn main() {
|
|||
.build()
|
||||
.expect("Could not construct LED Controller.");
|
||||
loop {
|
||||
let lock_c = Arc::clone(&lock);
|
||||
let lights = lock_c.read().expect("Could not read array lock.");
|
||||
let lights = lock.read().expect("Could not read array lock.");
|
||||
run_lights(&mut controller, &lights).expect("Error running lights controller.");
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue