Commit 2a1653ae authored by pixhawk's avatar pixhawk

Mission plan: now possible to delete remote list by "write"-ing an empty list

parent 85d53ed8
......@@ -866,8 +866,10 @@ void UASWaypointManager::writeWaypoints()
//send the waypoint count to UAS (this starts the send transaction)
sendWaypointCount();
}
} else if (waypointsEditable.count() == 0) {
sendWaypointClearAll();
else if (waypointsEditable.count() == 0)
{
sendWaypointClearAll();
}
} else {
//we're in another transaction, ignore command
qDebug() << "UASWaypointManager::sendWaypoints() doing something else ignoring command";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment