From c5f7b2fff289efd5cb4ecdda83858fa7a968e596 Mon Sep 17 00:00:00 2001 From: Robert Lefebvre Date: Tue, 15 May 2012 12:35:35 -0400 Subject: [PATCH] Fixed Syntax error. --- ArduCopter/sensors.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduCopter/sensors.pde b/ArduCopter/sensors.pde index 07e5066867..662cedc1d4 100644 --- a/ArduCopter/sensors.pde +++ b/ArduCopter/sensors.pde @@ -128,7 +128,7 @@ static void read_battery(void) current_total1 += current_amps1 * 0.02778; // called at 100ms on average, .0002778 is 1/3600 (conversion to hours) } - #if BATTERY_EVENT == 1 + #if BATTERY_EVENT == ENABLED //if(battery_voltage < g.low_voltage) // low_battery_event(); @@ -143,7 +143,7 @@ static void read_battery(void) } } - }elseif ( bitRead(g.copter_leds_mode, 3) ){ + }else if ( bitRead(g.copter_leds_mode, 3) ){ piezo_off(); } #endif //BATTERY_EVENT