Commit 65dcf96e authored by Lorenz Meier's avatar Lorenz Meier

Use higher rate for the serial link now that its living in its own thread

parent 1c80824e
......@@ -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
......
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