diff --git a/src/main.rs b/src/main.rs index d22b699..4a4d885 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,10 +21,12 @@ fn main() { .strip_type(StripType::Ws2812) .brightness(BRIGHTNESS) .build() + .expect("Could not construct LED Channel."); ) - .build().unwrap(); + .build() + .expect("Could not construct LED Controller."); loop { - let lights = lock_c.read().unwrap(); + let lights = lock_c.read().expect("Could not read array lock."); run_lights(&mut controller, &lights); } });