mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +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)
|
void beeperInit(beeperConfig_t *config)
|
||||||
{
|
{
|
||||||
#ifdef BEEPER
|
#ifndef BEEPER
|
||||||
|
UNUSED(config);
|
||||||
|
#else
|
||||||
initBeeperHardware(config);
|
initBeeperHardware(config);
|
||||||
if (config->isInverted)
|
if (config->isInverted)
|
||||||
systemBeepPtr = beepInverted;
|
systemBeepPtr = beepInverted;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue