1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

Don't sleep for a second, yield seems more sensible. Though really this should be combined with blocking IO instead of using non blocking bytes available I think (and why does the nmea parse only accept one byte at a time??)

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1314 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-08-18 00:12:49 +00:00 committed by cranphin
parent 85c335aa5d
commit e3e81c0866

View File

@ -76,7 +76,7 @@ void GpsDisplayThread::run()
port->read(&c,1); port->read(&c,1);
parser->processInputStream(c); parser->processInputStream(c);
} }
sleep(1); yieldCurrentThread();
} }
} else { } else {
qDebug() << "Port undefined or invalid."; qDebug() << "Port undefined or invalid.";