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:
parent
85c335aa5d
commit
e3e81c0866
@ -76,7 +76,7 @@ void GpsDisplayThread::run()
|
||||
port->read(&c,1);
|
||||
parser->processInputStream(c);
|
||||
}
|
||||
sleep(1);
|
||||
yieldCurrentThread();
|
||||
}
|
||||
} else {
|
||||
qDebug() << "Port undefined or invalid.";
|
||||
|
Loading…
Reference in New Issue
Block a user