Commit d5078aeb authored by DonLakeFlyer's avatar DonLakeFlyer

parent b70a4f01
......@@ -2102,14 +2102,12 @@ void Vehicle::_linkInactiveOrDeleted(LinkInterface* link)
bool Vehicle::sendMessageOnLinkThreadSafe(LinkInterface* link, mavlink_message_t message)
{
QMutexLocker lock(&_sendMessageOnLinkMutex);
if (!link->isConnected()) {
return false;
}
// Give the plugin a chance to adjust
_firmwarePlugin->adjustOutgoingMavlinkMessage(this, link, &message);
_firmwarePlugin->adjustOutgoingMavlinkMessageThreadSafe(this, link, &message);
// Write message into buffer, prepending start sign
uint8_t buffer[MAVLINK_MAX_PACKET_LEN];
......
......@@ -1412,7 +1412,6 @@ private:
bool _highLatencyLink;
bool _receivingAttitudeQuaternion;
CheckList _checkListState = CheckListNotSetup;
QMutex _sendMessageOnLinkMutex;
QGCCameraManager* _cameras;
......
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