mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 20:35:33 +03:00
CC3D - fixing two unused variable compiler warnings.
This commit is contained in:
parent
d762da7dac
commit
58e0900d5e
2 changed files with 9 additions and 1 deletions
|
@ -20,6 +20,9 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
#include "build_config.h"
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
|
|
||||||
#include "sensors/sensors.h" // FIXME dependency into the main code
|
#include "sensors/sensors.h" // FIXME dependency into the main code
|
||||||
|
@ -41,6 +44,7 @@ extern volatile uint16_t adcValues[ADC_CHANNEL_COUNT];
|
||||||
|
|
||||||
#ifdef CC3D
|
#ifdef CC3D
|
||||||
void adcInit(drv_adc_config_t *init) {
|
void adcInit(drv_adc_config_t *init) {
|
||||||
|
UNUSED(init);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void adcInit(drv_adc_config_t *init)
|
void adcInit(drv_adc_config_t *init)
|
||||||
|
|
|
@ -21,6 +21,8 @@
|
||||||
|
|
||||||
#include "platform.h"
|
#include "platform.h"
|
||||||
|
|
||||||
|
#include "build_config.h"
|
||||||
|
|
||||||
#include "system.h"
|
#include "system.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
|
|
||||||
|
@ -52,7 +54,9 @@ static void beepInverted(bool onoff)
|
||||||
|
|
||||||
void systemBeep(bool onoff)
|
void systemBeep(bool onoff)
|
||||||
{
|
{
|
||||||
#ifdef BEEPER
|
#ifndef BEEPER
|
||||||
|
UNUSED(onoff);
|
||||||
|
#else
|
||||||
systemBeepPtr(onoff);
|
systemBeepPtr(onoff);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue