Commit d5078aeb authored by DonLakeFlyer's avatar DonLakeFlyer

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