From a63b1d807480d9c4f8c3bf115d9b1f9251dbb52e Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Sun, 19 Mar 2023 11:37:36 +0000 Subject: [PATCH] fix #2 remove println --- src/render.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/render.rs b/src/render.rs index df622cb..65fdd5d 100644 --- a/src/render.rs +++ b/src/render.rs @@ -161,8 +161,6 @@ impl Render { self.ws = Some(Ws2812Rpi::new(current_pos as i32, PIN).unwrap()); - println!("Here"); - Ok(()) } @@ -321,6 +319,7 @@ impl Render { if time - self.last_update < 500 { println!("To Fast! Skiping"); + return; } self.last_update = time; @@ -328,7 +327,7 @@ impl Render { let lerp_data: Vec> = data.iter().zip(&self.last).map(|(d, l)| l.lerp(d, delta as f64)).collect(); - println!("d:{:?}\n l:{:?}", data[25], lerp_data[25]); + //println!("d:{:?}\n l:{:?}", data[25], lerp_data[25]); let to_set_data: Vec> = rgbs_f64_to_u8(&lerp_data);