added logs
This commit is contained in:
parent
fbfbd232a9
commit
d82df637e0
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user