added logs
This commit is contained in:
parent
fbfbd232a9
commit
d82df637e0
@ -277,8 +277,11 @@ impl Render {
|
||||
|
||||
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