Fix stuck green display after restarting recording

Rayhunter keeps track of the highest-severity warning seen during a
recording, and only updates the display color when a new event
exceeds that level. When a double-tap restarts recording, this
threshold isn't reset, so it retains the old session's maximum. Since no
new event can surpass the stale threshold, the display stays stuck on
green even when warnings are detected.

Fix #794
This commit is contained in:
Markus Unterwaditzer
2026-01-26 17:24:48 +01:00
committed by Will Greenberg
parent 3a807f48b2
commit b341ef2d1e

View File

@@ -77,6 +77,7 @@ impl DiagTask {
/// Start recording
async fn start(&mut self, qmdl_store: &mut RecordingStore) {
self.max_type_seen = EventType::Informational;
let (qmdl_file, analysis_file) = qmdl_store
.new_entry()
.await