diff --git a/libraries/DataFlash/LogFile.cpp b/libraries/DataFlash/LogFile.cpp index b1f1c2700a..9fcc050a58 100644 --- a/libraries/DataFlash/LogFile.cpp +++ b/libraries/DataFlash/LogFile.cpp @@ -1564,7 +1564,7 @@ void DataFlash_Class::Log_Write_Current_instance(const uint64_t time_us, voltage : battery.voltage(battery_instance), voltage_resting : battery.voltage_resting_estimate(battery_instance), current_amps : battery.current_amps(battery_instance), - current_total : battery.current_total_mah(battery_instance), + current_total : battery.consumed_mah(battery_instance), consumed_wh : battery.consumed_wh(battery_instance), temperature : (int16_t)(has_temp ? (temp * 100) : 0), resistance : battery.get_resistance(battery_instance)