Skip to content

Commit ff3a011

Browse files
committed
Remove duplicate AnalyzerResult
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent ba9c7ff commit ff3a011

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

inputmodule-control/src/inputmodule.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ use chrono::Local;
55
use image::codecs::gif::GifDecoder;
66
use image::{io::Reader as ImageReader, Luma};
77
use image::{AnimationDecoder, DynamicImage, ImageBuffer};
8-
use rand::prelude::*;
98
use serialport::{SerialPort, SerialPortInfo, SerialPortType};
109

1110
use crate::b1display::{B1Pattern, Fps, PowerMode};
@@ -621,7 +620,7 @@ fn display_gray_image_cmd(serialdev: &str, image_path: &str) {
621620
commit_cols(&mut port);
622621
}
623622

624-
// The data-type for storing analyzer results
623+
/// The data-type for storing analyzer results
625624
#[derive(Debug, Clone)]
626625
pub struct AnalyzerResult {
627626
spectrum: vis_core::analyzer::Spectrum<Vec<f32>>,
@@ -698,14 +697,6 @@ fn random_eq_cmd(serialdevs: &Vec<String>) {
698697
}
699698
}
700699

701-
// The data-type for storing analyzer results
702-
#[derive(Debug, Clone)]
703-
pub struct AnalyzerResult {
704-
spectrum: vis_core::analyzer::Spectrum<Vec<f32>>,
705-
volume: f32,
706-
beat: f32,
707-
}
708-
709700
// Equalizer-like animation that expands as volume goes up and retracts as it goes down
710701
fn input_eq_cmd(serialdevs: &Vec<String>) {
711702
// Example from https://github.com/Rahix/visualizer2/blob/canon/README.md

0 commit comments

Comments
 (0)