diff --git a/src/main.rs b/src/main.rs index 15056b0..6a76594 100644 --- a/src/main.rs +++ b/src/main.rs @@ -34,13 +34,13 @@ mod ui; use errors::ProgramError; use std::sync::mpsc::channel; use std::thread; -use strip::{LEDStrip, Message}; +use strip::{LedStrip, Message}; use ui::console_ui_loop; fn main() -> Result<(), ProgramError> { let (tx, rx) = channel::(); let strip_handle = thread::spawn(move || -> Result<(), ProgramError> { - let mut strip = LEDStrip::new(strip::Config { + let mut strip = LedStrip::new(strip::Config { // I have 89 right now, but start off with 20 num_lights: 20, // Skip 14 lights diff --git a/src/strip.rs b/src/strip.rs index 6e38600..34d6656 100644 --- a/src/strip.rs +++ b/src/strip.rs @@ -37,13 +37,13 @@ pub enum Message { } #[allow(clippy::module_name_repetitions)] -pub struct LEDStrip { +pub struct LedStrip { pub adapter: Box, pub config: Config, pub pattern: Box, } -impl LEDStrip { +impl LedStrip { pub fn new(config: Config) -> Result { let adapter = Box::new( Ws28xxSpiAdapter::new("/dev/spidev0.0")