AP_BattMonitor: replace int with uint8_t

non-functional change
This commit is contained in:
Randy Mackay 2017-05-31 12:30:48 +09:00
parent d5e898156f
commit 6d8dc0fccf

View File

@ -365,7 +365,7 @@ bool AP_BattMonitor::exhausted(uint8_t instance, float low_voltage, float min_ca
bool AP_BattMonitor::overpower_detected() const bool AP_BattMonitor::overpower_detected() const
{ {
bool result = false; bool result = false;
for (int instance = 0; instance < _num_instances; instance++) { for (uint8_t instance = 0; instance < _num_instances; instance++) {
result |= overpower_detected(instance); result |= overpower_detected(instance);
} }
return result; return result;