Sub: command-long DO_SET_HOME check first param is zero
This commit is contained in:
parent
2dae917c86
commit
6a1e14fccd
@ -1090,6 +1090,10 @@ void GCS_MAVLINK_Sub::handleMessage(mavlink_message_t* msg)
|
|||||||
result = MAV_RESULT_ACCEPTED;
|
result = MAV_RESULT_ACCEPTED;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
// ensure param1 is zero
|
||||||
|
if (!is_zero(packet.param1)) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
// sanity check location
|
// sanity check location
|
||||||
if (!check_latlng(packet.param5, packet.param6)) {
|
if (!check_latlng(packet.param5, packet.param6)) {
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user