mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Avoid unused variable warning for targets with no beeper.
This commit is contained in:
parent
00e0bf806a
commit
ec92a8e6ba
1 changed files with 3 additions and 1 deletions
|
@ -63,7 +63,9 @@ void systemBeep(bool onoff)
|
|||
|
||||
void beeperInit(beeperConfig_t *config)
|
||||
{
|
||||
#ifdef BEEPER
|
||||
#ifndef BEEPER
|
||||
UNUSED(config);
|
||||
#else
|
||||
initBeeperHardware(config);
|
||||
if (config->isInverted)
|
||||
systemBeepPtr = beepInverted;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue