From 3ed3f87db61fe7393eca1b038930265405324787 Mon Sep 17 00:00:00 2001 From: Alex Voinea Date: Tue, 12 Jul 2022 09:57:56 +0300 Subject: [PATCH] Prevent beeps when P is 0 --- Firmware/Marlin_main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Firmware/Marlin_main.cpp b/Firmware/Marlin_main.cpp index 29e757e4..e2069d20 100644 --- a/Firmware/Marlin_main.cpp +++ b/Firmware/Marlin_main.cpp @@ -7598,6 +7598,7 @@ Sigma_Exit: uint16_t beepS = code_seen('S') ? code_value() : 0; uint16_t beepP = code_seen('P') ? code_value() : 1000; #if BEEPER > 0 + if (beepP > 0) Sound_MakeCustom(beepP,beepS,false); #endif }