1
0
Fork 0
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:
Dominic Clifton 2014-11-01 09:15:33 +00:00
parent 00e0bf806a
commit ec92a8e6ba

View file

@ -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;