From c4fbeb50a975419c7034ea3523fc3cf05d14008c Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Tue, 3 Mar 2026 11:39:19 +0100 Subject: [PATCH] Update detector info proto details --- src/device.rs | 4 ---- src/views/monitoring.rs | 4 ---- striker-proto/src/lib.rs | 3 --- 3 files changed, 11 deletions(-) diff --git a/src/device.rs b/src/device.rs index 6381542..38ecf0e 100644 --- a/src/device.rs +++ b/src/device.rs @@ -40,8 +40,6 @@ pub struct DeviceSocket { pub struct DeviceDetector { pub blip_threshold: u16, pub blip_size: usize, - pub max_duty: u16, - pub duty: u16, } impl Widget for DeviceDetector { @@ -52,8 +50,6 @@ impl Widget for DeviceDetector { let detector_lines = [ Line::from_iter([Span::raw("Threshold: "), self.blip_threshold.to_span()]), Line::from_iter([Span::raw("Blip Size: "), self.blip_size.to_span()]), - Line::from_iter([Span::raw("Max Duty: "), self.max_duty.to_span()]), - Line::from_iter([Span::raw("Current Duty: "), self.duty.to_span()]), ]; let detector_info = Paragraph::new(Text::from_iter(detector_lines)) diff --git a/src/views/monitoring.rs b/src/views/monitoring.rs index 7d25c57..0c12c44 100644 --- a/src/views/monitoring.rs +++ b/src/views/monitoring.rs @@ -128,14 +128,10 @@ pub fn update_device_data( StrikerResponse::Response(Response::DetectorInfo { blip_threshold, blip_size, - max_duty, - duty, }) => { entity.insert(DeviceDetector { blip_threshold, blip_size, - max_duty, - duty, }); } StrikerResponse::Update(Update::Warning { timestamp, level }) => { diff --git a/striker-proto/src/lib.rs b/striker-proto/src/lib.rs index 405b6b7..3901286 100644 --- a/striker-proto/src/lib.rs +++ b/striker-proto/src/lib.rs @@ -16,7 +16,6 @@ pub enum Request { SetDetectorConfig { blip_threshold: Option, blip_size: Option, - duty: Option, }, } @@ -32,8 +31,6 @@ pub enum Response { DetectorInfo { blip_threshold: u16, blip_size: usize, - max_duty: u16, - duty: u16, }, SetDetectorConfig { success: bool, -- 2.51.2