Fixed Syntax error.

This commit is contained in:
Robert Lefebvre 2012-05-15 12:35:35 -04:00
parent a9349a6e87
commit 17a1b6d672

View File

@ -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) 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) //if(battery_voltage < g.low_voltage)
// low_battery_event(); // 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(); piezo_off();
} }
#endif //BATTERY_EVENT #endif //BATTERY_EVENT