Prevent beeps when P is 0
This commit is contained in:
parent
2a9869ce2d
commit
3ed3f87db6
@ -7598,6 +7598,7 @@ Sigma_Exit:
|
|||||||
uint16_t beepS = code_seen('S') ? code_value() : 0;
|
uint16_t beepS = code_seen('S') ? code_value() : 0;
|
||||||
uint16_t beepP = code_seen('P') ? code_value() : 1000;
|
uint16_t beepP = code_seen('P') ? code_value() : 1000;
|
||||||
#if BEEPER > 0
|
#if BEEPER > 0
|
||||||
|
if (beepP > 0)
|
||||||
Sound_MakeCustom(beepP,beepS,false);
|
Sound_MakeCustom(beepP,beepS,false);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user