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:
parent
00d1f66dd2
commit
6fd369001e
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ static uint16_t freqBeep = 0;
|
||||||
|
|
||||||
void pwmWriteBeeper(bool on)
|
void pwmWriteBeeper(bool on)
|
||||||
{
|
{
|
||||||
if (!beeperPwm.io) {
|
if (!beeperPwm.io || freqBeep == 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue