From 6069dc2ad8c1cf4f7d5a55063898c1a78e8f19ed Mon Sep 17 00:00:00 2001 From: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Date: Fri, 10 Oct 2025 00:18:36 -0400 Subject: [PATCH] trunk fix --- src/graphics/draw/MessageRenderer.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/graphics/draw/MessageRenderer.cpp b/src/graphics/draw/MessageRenderer.cpp index 2a3a9f24f..361c76fdb 100644 --- a/src/graphics/draw/MessageRenderer.cpp +++ b/src/graphics/draw/MessageRenderer.cpp @@ -724,8 +724,7 @@ void handleNewMessage(const StoredMessage &sm, const meshtastic_MeshPacket &pack // Determine if message belongs to a muted channel bool isMuted = false; if (sm.type == MessageType::BROADCAST) { - const meshtastic_Channel channel = - channels.getByIndex(packet.channel ? packet.channel : channels.getPrimaryIndex()); + const meshtastic_Channel channel = channels.getByIndex(packet.channel ? packet.channel : channels.getPrimaryIndex()); if (channel.settings.mute) isMuted = true; } @@ -744,8 +743,7 @@ void handleNewMessage(const StoredMessage &sm, const meshtastic_MeshPacket &pack bool isAlert = false; // Check if alert detection is enabled via external notification module - if (moduleConfig.external_notification.alert_bell || - moduleConfig.external_notification.alert_bell_vibra || + if (moduleConfig.external_notification.alert_bell || moduleConfig.external_notification.alert_bell_vibra || moduleConfig.external_notification.alert_bell_buzzer) { for (size_t i = 0; i < packet.decoded.payload.size && i < 100; i++) { if (msgRaw[i] == '\x07') { @@ -817,8 +815,7 @@ void handleNewMessage(const StoredMessage &sm, const meshtastic_MeshPacket &pack // Only beep if allowed by device settings or alert rules if (config.device.buzzer_mode != meshtastic_Config_DeviceConfig_BuzzerMode_DIRECT_MSG_ONLY || - (isAlert && moduleConfig.external_notification.alert_bell_buzzer) || - (!isBroadcast(packet.to) && isToUs(packet))) { + (isAlert && moduleConfig.external_notification.alert_bell_buzzer) || (!isBroadcast(packet.to) && isToUs(packet))) { playLongBeep(); } #else