added more logs

This commit is contained in:
Andre Henriques 2023-03-15 22:16:14 +00:00
parent d82df637e0
commit 8c4c736555

View File

@ -225,6 +225,8 @@ impl Render {
pub fn render(&mut self) { pub fn render(&mut self) {
println!("render");
if self.ws.is_none() { return; } if self.ws.is_none() { return; }
let mut data = vec![RGB8::default(); self.num_leds.try_into().unwrap()]; let mut data = vec![RGB8::default(); self.num_leds.try_into().unwrap()];
@ -275,6 +277,8 @@ impl Render {
to_clean.iter().for_each(|i| self.remove_animation(i.to_string())); to_clean.iter().for_each(|i| self.remove_animation(i.to_string()));
println!("pre-push");
if self.last.is_empty() || !self.last.clone().iter().eq(data.clone().iter()) { if self.last.is_empty() || !self.last.clone().iter().eq(data.clone().iter()) {