From 4dedb97b6fdca145a096728b4a29fd7ab9c74343 Mon Sep 17 00:00:00 2001 From: Jason P Date: Wed, 7 Jan 2026 08:38:26 -0600 Subject: [PATCH] Only play tones if we actually did something --- src/input/ButtonThread.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/input/ButtonThread.cpp b/src/input/ButtonThread.cpp index 35dabc8b2..4cc18a8bc 100644 --- a/src/input/ButtonThread.cpp +++ b/src/input/ButtonThread.cpp @@ -246,13 +246,13 @@ int32_t ButtonThread::runOnce() if (moduleConfig.external_notification.enabled && externalNotificationModule) { externalNotificationModule->setMute(!externalNotificationModule->getMute()); IF_SCREEN(if (!externalNotificationModule->getMute()) externalNotificationModule->stopNow();) - } - if (externalNotificationModule->getMute()) { - LOG_INFO("Temporarily Muted"); - play4ClickDown(); // Disable tone - } else { - LOG_INFO("Unmuted"); - play4ClickUp(); // Enable tone + if (externalNotificationModule->getMute()) { + LOG_INFO("Temporarily Muted"); + play4ClickDown(); // Disable tone + } else { + LOG_INFO("Unmuted"); + play4ClickUp(); // Enable tone + } } break;