Prevent beeps when P is 0

This commit is contained in:
Alex Voinea 2022-07-12 09:57:56 +03:00
parent 2a9869ce2d
commit 3ed3f87db6

View File

@ -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
}