Sub: command-long DO_SET_HOME check first param is zero

This commit is contained in:
Randy Mackay 2017-09-20 09:23:15 +09:00
parent 2dae917c86
commit 6a1e14fccd

View File

@ -1090,6 +1090,10 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
result = MAV_RESULT_ACCEPTED;
}
} else {
// ensure param1 is zero
if (!is_zero(packet.param1)) {
break;
}
// sanity check location
if (!check_latlng(packet.param5, packet.param6)) {
break;