From 65dcf96e2993e13378081dc5254b4773536b0713 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Wed, 7 May 2014 08:49:44 +0200 Subject: [PATCH] Use higher rate for the serial link now that its living in its own thread --- src/comm/SerialLink.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index 10141b4ed..1dbce7d65 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -73,6 +73,7 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl, qDebug() << "m_portName " << m_portName; LinkManager::instance()->add(this); + qDebug() << "link added to link manager"; } void SerialLink::requestReset() @@ -191,6 +192,7 @@ void SerialLink::run() // disconnect(); // This tidies up and sends the necessary signals return; } + qDebug() << "connected"; // Qt way to make clear what a while(1) loop does qint64 msecs = QDateTime::currentMSecsSinceEpoch(); @@ -314,7 +316,8 @@ void SerialLink::run() // } } } - MG::SLEEP::msleep(SerialLink::poll_interval); + //MG::SLEEP::msleep(SerialLink::poll_interval); + QGC::SLEEP::msleep(2); } // end of forever if (m_port) { // [TODO][BB] Not sure we need to close the port here -- 2.22.0