AP_BattMonitor: Removed the need to set the battery_voltage flag
This commit is contained in:
parent
a5e974c227
commit
fd9f9cdfe0
@ -200,10 +200,6 @@ AP_BattMonitor::read()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (get_type() != AP_BattMonitor_Params::BattMonitor_TYPE_NONE) {
|
|
||||||
AP_Notify::flags.battery_voltage = voltage();
|
|
||||||
}
|
|
||||||
|
|
||||||
DataFlash_Class *df = DataFlash_Class::instance();
|
DataFlash_Class *df = DataFlash_Class::instance();
|
||||||
if (df->should_log(_log_battery_bit)) {
|
if (df->should_log(_log_battery_bit)) {
|
||||||
df->Log_Write_Current();
|
df->Log_Write_Current();
|
||||||
|
Loading…
Reference in New Issue
Block a user