fix draw loop
This commit is contained in:
parent
560b3be71b
commit
d9b96f6090
@ -46,15 +46,12 @@ impl Device for HeliosDevice {
|
||||
line: Vec<Point>,
|
||||
speed: u32,
|
||||
) -> LJResult<()> {
|
||||
while let Ok(DeviceStatus::NotReady) = self.dac.status() {}
|
||||
while let Ok(DeviceStatus::NotReady) = self.dac.status() {
|
||||
}
|
||||
|
||||
let points: Vec<helios_dac::Point> = 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())?;
|
||||
}
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -109,6 +109,6 @@ fn get_next_frame(
|
||||
line = transformer.apply(&line);
|
||||
}
|
||||
|
||||
info!("Line: {:?}", line);
|
||||
//info!("Line: {:?}", line);
|
||||
Ok(line)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user