AP_BattMonitor: Removed the need to set the battery_voltage flag

This commit is contained in:
Michael du Breuil 2018-07-25 18:10:12 -07:00 committed by Andrew Tridgell
parent a5e974c227
commit fd9f9cdfe0
1 changed files with 0 additions and 4 deletions

View File

@ -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();
if (df->should_log(_log_battery_bit)) {
df->Log_Write_Current();