Browse Source

Prevent beeps when P is 0

Alex Voinea 2 years ago
parent
commit
3ed3f87db6
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Firmware/Marlin_main.cpp

+ 1 - 0
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
     }