From 2b2f86374f2cb89eacf17cb27f0ece318d798e70 Mon Sep 17 00:00:00 2001 From: "jacob.eva" Date: Mon, 21 Oct 2024 19:16:37 +0100 Subject: [PATCH] Fix edge case in buzzer muting --- Buzzer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Buzzer.h b/Buzzer.h index edd87a6..52cac6e 100644 --- a/Buzzer.h +++ b/Buzzer.h @@ -33,6 +33,7 @@ void toggle_buzzer_enable() { buzzer_enabled = !buzzer_enabled; - update_buzzer_notone(); + noTone(PIN_BUZZER); + digitalWrite(PIN_BUZZER, LOW); } #endif