diff --git a/src/device/helios.rs b/src/device/helios.rs index 9e0cd81..f607bb8 100644 --- a/src/device/helios.rs +++ b/src/device/helios.rs @@ -46,15 +46,12 @@ impl Device for HeliosDevice { 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); - - while let Ok(DeviceStatus::NotReady) = self.dac.status() { - self.dac.write_frame(frame.clone())?; - } - + self.dac.write_frame(frame.clone())?; Ok(()) } diff --git a/src/main.rs b/src/main.rs index cb05855..e52ef28 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) }