From adcd606e160f25f70afb776070df05ce76454686 Mon Sep 17 00:00:00 2001 From: Andres <> Date: Sun, 13 Apr 2014 14:08:34 +0200 Subject: [PATCH] OP-1299 uncrustify. --- flight/modules/Battery/battery.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flight/modules/Battery/battery.c b/flight/modules/Battery/battery.c index 259b207da..e3a495605 100644 --- a/flight/modules/Battery/battery.c +++ b/flight/modules/Battery/battery.c @@ -213,9 +213,10 @@ static void onTimer(__attribute__((unused)) UAVObjEvent *ev) static int8_t GetNbCells(const FlightBatterySettingsData *batterySettings, FlightBatteryStateData *flightBatteryData) { // get flight status to check for armed - uint8_t armed=0; + uint8_t armed = 0; + FlightStatusArmedGet(&armed); - + // check only if not armed if (armed == FLIGHTSTATUS_ARMED_ARMED) {