1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

pwmWriteBeeper add extra check for initialisation (freqBeep != 0).

This commit is contained in:
Matthew Selby 2025-06-29 18:49:04 +01:00
parent 00d1f66dd2
commit 6fd369001e

View file

@ -32,7 +32,7 @@ static uint16_t freqBeep = 0;
void pwmWriteBeeper(bool on)
{
if (!beeperPwm.io) {
if (!beeperPwm.io || freqBeep == 0) {
return;
}