Copter: Change the process for errors

This commit is contained in:
murata 2022-02-10 22:43:53 +09:00 committed by Tom Pittenger
parent 8037eaf4cf
commit 77d898c951

View File

@ -1407,10 +1407,7 @@ void GCS_MAVLINK_Copter::handleMessage(const mavlink_message_t &msg)
new_home_loc.lat = packet.latitude;
new_home_loc.lng = packet.longitude;
new_home_loc.alt = packet.altitude / 10;
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-result"
copter.set_home(new_home_loc, true);
#pragma GCC diagnostic pop
IGNORE_RETURN(copter.set_home(new_home_loc, true));
}
break;
}