Browse Source

Merge pull request #1142 from DonLakeFlyer/UTFailure

Fix intermittent UT failure
QGC4.4
Don Gagne 10 years ago
parent
commit
b10556257c
  1. 2
      src/QGCSingleton.h
  2. 15
      src/comm/MAVLinkProtocol.cc

2
src/QGCSingleton.h

@ -78,7 +78,7 @@ @@ -78,7 +78,7 @@
interfaceName* className::instance(bool nullOk) \
{ \
if (!nullOk) { \
Q_ASSERT_X(_instance, "QGCSingleton", "If you hit this, then you have run into a startup or shutdown sequence bug."); \
Q_ASSERT_X(_instance, "QGCSingleton", "Request for singleton that is NULL. If you hit this, then you have likely run into a startup or shutdown sequence bug (possibly intermittent)."); \
} \
return _instance; \
} \

15
src/comm/MAVLinkProtocol.cc

@ -198,17 +198,6 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected) @@ -198,17 +198,6 @@ void MAVLinkProtocol::_linkStatusChanged(LinkInterface* link, bool connected)
_stopLogging();
}
}
// Track the links which are connected to the protocol
QList<LinkInterface*> _connectedLinks; ///< List of all links connected to protocol
//qDebug() << "linkStatusChanged" << connected;
if (link) {
if (connected) {
}
}
}
/**
@ -294,9 +283,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b) @@ -294,9 +283,7 @@ void MAVLinkProtocol::receiveBytes(LinkInterface* link, QByteArray b)
// Log data
Q_ASSERT(_logSuspendError || _logSuspendReplay || _tempLogFile.isOpen());
if (!_logSuspendError && !_logSuspendReplay) {
if (!_logSuspendError && !_logSuspendReplay && _tempLogFile.isOpen()) {
uint8_t buf[MAVLINK_MAX_PACKET_LEN+sizeof(quint64)];
// Write the uint64 time in microseconds in big endian format before the message.

Loading…
Cancel
Save