Browse Source

Fix placement of _sendNextQueuedMavCommand

QGC4.4
DoinLakeFlyer 5 years ago
parent
commit
5e17a23b3c
  1. 3
      src/Vehicle/Vehicle.cc

3
src/Vehicle/Vehicle.cc

@ -3469,6 +3469,7 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message)
_mavCommandAckTimer.stop(); _mavCommandAckTimer.stop();
showError = _mavCommandQueue[0].showError; showError = _mavCommandQueue[0].showError;
_mavCommandQueue.removeFirst(); _mavCommandQueue.removeFirst();
_sendNextQueuedMavCommand();
} }
emit mavCommandResult(_id, message.compid, ack.command, ack.result, false /* noResponsefromVehicle */); emit mavCommandResult(_id, message.compid, ack.command, ack.result, false /* noResponsefromVehicle */);
@ -3493,8 +3494,6 @@ void Vehicle::_handleCommandAck(mavlink_message_t& message)
break; break;
} }
} }
_sendNextQueuedMavCommand();
} }
void Vehicle::setPrearmError(const QString& prearmError) void Vehicle::setPrearmError(const QString& prearmError)

Loading…
Cancel
Save