From 15d1ae0b60e87ab8479cc26e1c25b46be3048f76 Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Mon, 2 Mar 2026 12:47:22 +0100 Subject: [PATCH] threshold as u16 --- src/device.rs | 2 +- striker-proto/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.rs b/src/device.rs index 364bc80..6381542 100644 --- a/src/device.rs +++ b/src/device.rs @@ -38,7 +38,7 @@ pub struct DeviceSocket { #[derive(Debug, Component, Default, Clone, Copy)] pub struct DeviceDetector { - pub blip_threshold: usize, + pub blip_threshold: u16, pub blip_size: usize, pub max_duty: u16, pub duty: u16, diff --git a/striker-proto/src/lib.rs b/striker-proto/src/lib.rs index b3e5e33..405b6b7 100644 --- a/striker-proto/src/lib.rs +++ b/striker-proto/src/lib.rs @@ -14,7 +14,7 @@ pub enum Request { Ping, DetectorInfo, SetDetectorConfig { - blip_threshold: Option, + blip_threshold: Option, blip_size: Option, duty: Option, }, @@ -30,7 +30,7 @@ pub enum StrikerResponse { pub enum Response { Pong, DetectorInfo { - blip_threshold: usize, + blip_threshold: u16, blip_size: usize, max_duty: u16, duty: u16, -- 2.51.2