1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

Avoid warning when target does not use beeper.

This commit is contained in:
Dominic Clifton 2014-10-24 22:26:10 +01:00
parent 4a90599e3a
commit 247d35ec85

View file

@ -21,6 +21,8 @@
#include "platform.h"
#include "build_config.h"
#include "system.h"
#include "gpio.h"
@ -28,7 +30,9 @@
void initBeeperHardware(beeperConfig_t *config)
{
#ifdef BEEPER
#ifndef BEEPER
UNUSED(config);
#else
gpio_config_t gpioConfig = {
config->gpioPin,
config->gpioMode,