From 8baf2149ea5562a1f5a91fca3926153047075606 Mon Sep 17 00:00:00 2001 From: maj00r Date: Mon, 16 Nov 2026 02:21:23 +0100 Subject: [PATCH] fix(blackbox): a buzzer named by the lamps of its buzzing samples only --- Eu07.BlackBox.Views/EventList.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eu07.BlackBox.Views/EventList.cs b/Eu07.BlackBox.Views/EventList.cs index 91aa150..c4be54c 100644 --- a/Eu07.BlackBox.Views/EventList.cs +++ b/Eu07.BlackBox.Views/EventList.cs @@ -200,8 +200,8 @@ public sealed class EventList : ListBox var brakings = recording.SecurityBrakings(); foreach (var span in recording.SecurityAlarms()) { - // The lamps of all its samples: one buzzer for both, the other may join it before it's acknowledged. - var lamps = recording.Cab.Where(c => c.Time >= span.Start && c.Time <= span.End) + // The lamps of all its buzzing samples: one buzzer for both, the other may join it before it's acknowledged. + var lamps = recording.Cab.Where(c => c.Time >= span.Start && c.Time <= span.End && (c.VigilanceBuzzer || c.CabSignalBuzzer)) .Aggregate(SecurityFlags.None, (all, c) => all | c.Security); string who = ProtectionName(lamps); var before = recording.CabAt(span.Start);