From 0441b8b786c89d7eec287462b2ba79d987f417e3 Mon Sep 17 00:00:00 2001 From: cranphin Date: Sun, 19 Sep 2010 12:37:41 +0000 Subject: [PATCH] GCS FlightGear sim: This is how it's done in the manual, and seems to work well for me :) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1689 ebee16cc-31ac-478f-84a7-5cbb03baadba --- ground/src/plugins/hitlnew/simulator.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ground/src/plugins/hitlnew/simulator.cpp b/ground/src/plugins/hitlnew/simulator.cpp index 0a2818c6a..c07283fc5 100644 --- a/ground/src/plugins/hitlnew/simulator.cpp +++ b/ground/src/plugins/hitlnew/simulator.cpp @@ -183,8 +183,7 @@ void Simulator::receiveUpdate() } // Process data - while(inSocket->bytesAvailable() > 0) - { + while(inSocket->hasPendingDatagrams()) { // Receive datagram QByteArray datagram; datagram.resize(inSocket->pendingDatagramSize());