Report unknown channel count in status response

This commit is contained in:
Dominik Werder
2023-07-18 15:49:08 +02:00
parent 91947dec0f
commit 5d6358f12e
32 changed files with 596 additions and 518 deletions

View File

@@ -80,7 +80,7 @@ mod decomps_serde {
}
impl EventFull {
pub fn add_event(
pub fn push(
&mut self,
ts: u64,
pulse: u64,
@@ -118,6 +118,13 @@ impl EventFull {
self.shapes.truncate(nkeep);
self.comps.truncate(nkeep);
}
// NOTE needed because the databuffer actually doesn't write the correct shape per event.
pub fn overwrite_all_shapes(&mut self, shape: &Shape) {
for u in &mut self.shapes {
*u = shape.clone();
}
}
}
impl FrameTypeInnerStatic for EventFull {