mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 16:09:58 -07:00
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:
committed by
Will Greenberg
parent
3a807f48b2
commit
b341ef2d1e
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user