diff --git a/.gitignore b/.gitignore index de3276d..0e205d4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # Configuration file -settings.* +Settings.* # Generated by Cargo # will have compiled files and executables diff --git a/copyme.settings.toml b/copyme.Settings.toml similarity index 100% rename from copyme.settings.toml rename to copyme.Settings.toml diff --git a/src/device/helios.rs b/src/device/helios.rs index f607bb8..8b0fc88 100644 --- a/src/device/helios.rs +++ b/src/device/helios.rs @@ -42,16 +42,14 @@ impl Device for HeliosDevice { } } - fn draw(&mut self, + fn draw(&self, line: Vec, speed: u32, ) -> LJResult<()> { - while let Ok(DeviceStatus::NotReady) = self.dac.status() { - } + while let Ok(DeviceStatus::NotReady) = self.dac.status() {} let points: Vec = line.into_iter().map(|p| p.into()).collect(); - let frame = Frame::new(speed, points); - self.dac.write_frame(frame.clone())?; + let _frame = Frame::new(speed, points); Ok(()) } diff --git a/src/device.rs b/src/device/mod.rs similarity index 98% rename from src/device.rs rename to src/device/mod.rs index d85d95a..9f4455b 100644 --- a/src/device.rs +++ b/src/device/mod.rs @@ -29,7 +29,7 @@ pub struct Status { pub trait Device { fn status( &self ) -> Status; fn draw( - &mut self, + &self, frame: Vec, speed: u32, ) -> LJResult<()> ; diff --git a/src/main.rs b/src/main.rs index e52ef28..cb05855 100644 --- a/src/main.rs +++ b/src/main.rs @@ -109,6 +109,6 @@ fn get_next_frame( line = transformer.apply(&line); } - //info!("Line: {:?}", line); + info!("Line: {:?}", line); Ok(line) }