The cc2530 button driver would fail to compile if the user disabled button support

This commit is contained in:
George Oikonomou 2012-04-27 11:49:47 +01:00
parent 0d4b90c42b
commit cc76c649b1

View File

@ -69,14 +69,12 @@
#endif /* BUTTON_SENSOR_CONF_ON */
#define button_sensor button_1_sensor
extern const struct sensors_sensor button_1_sensor;
extern const struct sensors_sensor button_2_sensor;
#if BUTTON_SENSOR_ON
/* Common */
extern const struct sensors_sensor button_1_sensor;
#if MODEL_CC2531
/* USB Dongle */
extern const struct sensors_sensor button_2_sensor;
/* Buttons: P1_2 & P1_3 - Port 1 ISR needed */
void port_1_isr(void) __interrupt(P1INT_VECTOR);
#define BUTTON_SENSOR_ACTIVATE() do { \