mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Fixed Syntax error.
This commit is contained in:
parent
c8fb9a6635
commit
c5f7b2fff2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user