added logs

This commit is contained in:
Andre Henriques 2023-03-15 22:14:02 +00:00
parent fbfbd232a9
commit d82df637e0

View File

@ -276,9 +276,12 @@ impl Render {
to_clean.iter().for_each(|i| self.remove_animation(i.to_string()));
if self.last.is_empty() || !self.last.clone().iter().eq(data.clone().iter()) {
let lerp_data: Vec<RGB<u8>> = data.iter().zip(&self.last).map(|(d, l)| d.lerp(l)).collect();
println!("d:{:?}\n l:{:?}", data, lerp_data);
let err = self.ws.as_mut().unwrap().write(lerp_data.clone().into_iter());
if err.is_err() || err.ok().is_none() {