CC3D - fixing two unused variable compiler warnings.

This commit is contained in:
Dominic Clifton 2014-08-02 00:46:01 +01:00
parent d762da7dac
commit 58e0900d5e
2 changed files with 9 additions and 1 deletions

View File

@ -20,6 +20,9 @@
#include <string.h>
#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)

View File

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