Fix unused variable compiler warnings for Olimexino and SPRacingF3

targets - warning introduced in e0af5f41ef
This commit is contained in:
Dominic Clifton 2015-05-06 22:34:05 +01:00
parent cfb55516fc
commit b8312f8678
1 changed files with 3 additions and 0 deletions

View File

@ -19,6 +19,7 @@
#include <stdint.h> #include <stdint.h>
#include "platform.h" #include "platform.h"
#include "build_config.h"
#include "common/maths.h" #include "common/maths.h"
#include "common/axis.h" #include "common/axis.h"
@ -61,6 +62,7 @@ void sonarInit(batteryConfig_t *batteryConfig)
hcsr04_init(&sonarRC78); hcsr04_init(&sonarRC78);
} }
#elif defined(OLIMEXINO) #elif defined(OLIMEXINO)
UNUSED(batteryConfig);
static const sonarHardware_t const sonarHardware = { static const sonarHardware_t const sonarHardware = {
.trigger_pin = Pin_0, // RX7 (PB0) - only 3.3v ( add a 1K Ohms resistor ) .trigger_pin = Pin_0, // RX7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
.echo_pin = Pin_1, // RX8 (PB1) - only 3.3v ( add a 1K Ohms resistor ) .echo_pin = Pin_1, // RX8 (PB1) - only 3.3v ( add a 1K Ohms resistor )
@ -70,6 +72,7 @@ void sonarInit(batteryConfig_t *batteryConfig)
}; };
hcsr04_init(&sonarHardware); hcsr04_init(&sonarHardware);
#elif defined(SPRACINGF3) #elif defined(SPRACINGF3)
UNUSED(batteryConfig);
static const sonarHardware_t const sonarHardware = { static const sonarHardware_t const sonarHardware = {
.trigger_pin = Pin_0, // RC_CH7 (PB0) - only 3.3v ( add a 1K Ohms resistor ) .trigger_pin = Pin_0, // RC_CH7 (PB0) - only 3.3v ( add a 1K Ohms resistor )
.echo_pin = Pin_1, // RC_CH8 (PB1) - only 3.3v ( add a 1K Ohms resistor ) .echo_pin = Pin_1, // RC_CH8 (PB1) - only 3.3v ( add a 1K Ohms resistor )