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:
parent
4a90599e3a
commit
247d35ec85
1 changed files with 5 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue