GCS_MAVLink: rename battery reset function

This commit is contained in:
Iampete1 2021-03-26 20:13:08 +00:00 committed by Andrew Tridgell
parent d343c569c2
commit 0fe38da522
1 changed files with 1 additions and 1 deletions

View File

@ -3848,7 +3848,7 @@ MAV_RESULT GCS_MAVLINK::handle_command_battery_reset(const mavlink_command_long_
{
const uint16_t battery_mask = packet.param1;
const float percentage = packet.param2;
if (AP::battery().reset_remaining(battery_mask, percentage)) {
if (AP::battery().reset_remaining_mask(battery_mask, percentage)) {
return MAV_RESULT_ACCEPTED;
}
return MAV_RESULT_FAILED;