From 9ba3ebbda1208b254b6677d7c385cf79de61bad6 Mon Sep 17 00:00:00 2001 From: Sachymetsu Date: Wed, 28 Jan 2026 19:40:46 +0100 Subject: [PATCH] update peaks proto format --- src/device.rs | 4 ++-- striker-proto/src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/device.rs b/src/device.rs index 38d5f1f..45d5832 100644 --- a/src/device.rs +++ b/src/device.rs @@ -90,10 +90,10 @@ impl SignalAverage { #[derive(Debug, Component, Deref)] #[component(immutable)] -pub struct SignalPeaks(Vec); +pub struct SignalPeaks(Vec<(usize, u16)>); impl SignalPeaks { - pub fn new(value: Vec) -> Self { + pub fn new(value: Vec<(usize, u16)>) -> Self { Self(value) } } diff --git a/striker-proto/src/lib.rs b/striker-proto/src/lib.rs index 8f92068..b3e5e33 100644 --- a/striker-proto/src/lib.rs +++ b/striker-proto/src/lib.rs @@ -49,7 +49,7 @@ pub enum Update { }, Strike { timestamp: i64, - peaks: Vec, + peaks: Vec<(usize, u16)>, samples: Vec, average: u16, }, -- 2.51.2