From e3e81c08669d9678994bf6f631d610ce3ed96c96 Mon Sep 17 00:00:00 2001 From: cranphin Date: Wed, 18 Aug 2010 00:12:49 +0000 Subject: [PATCH] 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 --- ground/src/plugins/gpsdisplay/gpsdisplaythread.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ground/src/plugins/gpsdisplay/gpsdisplaythread.cpp b/ground/src/plugins/gpsdisplay/gpsdisplaythread.cpp index ef54f5e10..74ebe0a04 100644 --- a/ground/src/plugins/gpsdisplay/gpsdisplaythread.cpp +++ b/ground/src/plugins/gpsdisplay/gpsdisplaythread.cpp @@ -76,7 +76,7 @@ void GpsDisplayThread::run() port->read(&c,1); parser->processInputStream(c); } - sleep(1); + yieldCurrentThread(); } } else { qDebug() << "Port undefined or invalid.";