mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-02 19:53:57 -04:00
Copter: Change the process for errors
This commit is contained in:
parent
8037eaf4cf
commit
77d898c951
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user