diff --git a/src/main/drivers/adc_stm32f10x.c b/src/main/drivers/adc_stm32f10x.c index 77cb80816c..e5a451cc37 100644 --- a/src/main/drivers/adc_stm32f10x.c +++ b/src/main/drivers/adc_stm32f10x.c @@ -20,6 +20,9 @@ #include #include "platform.h" + +#include "build_config.h" + #include "system.h" #include "sensors/sensors.h" // FIXME dependency into the main code @@ -41,6 +44,7 @@ extern volatile uint16_t adcValues[ADC_CHANNEL_COUNT]; #ifdef CC3D void adcInit(drv_adc_config_t *init) { + UNUSED(init); } #else void adcInit(drv_adc_config_t *init) diff --git a/src/main/drivers/sound_beeper.c b/src/main/drivers/sound_beeper.c index afe0aaf6ad..190db9fcdd 100644 --- a/src/main/drivers/sound_beeper.c +++ b/src/main/drivers/sound_beeper.c @@ -21,6 +21,8 @@ #include "platform.h" +#include "build_config.h" + #include "system.h" #include "gpio.h" @@ -52,7 +54,9 @@ static void beepInverted(bool onoff) void systemBeep(bool onoff) { -#ifdef BEEPER +#ifndef BEEPER + UNUSED(onoff); +#else systemBeepPtr(onoff); #endif }