From 5a71aa2cf0195038afb932bc423e9cb91f658bf4 Mon Sep 17 00:00:00 2001 From: Kai Vogelgesang Date: Thu, 28 Oct 2021 01:32:37 +0200 Subject: [PATCH] Cleanup --- beat_detection/src/dmx_controller.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/beat_detection/src/dmx_controller.rs b/beat_detection/src/dmx_controller.rs index 0a9532b..7a3d92a 100644 --- a/beat_detection/src/dmx_controller.rs +++ b/beat_detection/src/dmx_controller.rs @@ -1,7 +1,6 @@ use std::{io, sync::{Arc, Mutex}, thread, time::{Duration, Instant}}; use anyhow::{anyhow, Result}; -use palette::{Hsl, IntoColor, Pixel, Srgb}; use serialport::SerialPort; use crate::fixtures::{DMXFixture, MovingHead}; @@ -42,8 +41,6 @@ fn poll_response(ser: &mut dyn SerialPort) -> Result { pub fn controller_thread(running: Arc>, movingheads: Arc>) -> Result<()> { let frame_time = Duration::from_secs_f64(1.0 / FPS as f64); - let hsl_cycle = 12 * FPS; - let mut dmx_buffer = [0u8; 512]; let mut ser = serialport::new("/dev/ttyUSB0", 500_000) @@ -58,8 +55,6 @@ pub fn controller_thread(running: Arc>, movingheads: Arc>, movingheads: Arc