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

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
This commit is contained in:
cranphin 2010-09-19 12:37:41 +00:00 committed by cranphin
parent e59a58aa0e
commit 0441b8b786

View File

@ -183,8 +183,7 @@ void Simulator::receiveUpdate()
}
// Process data
while(inSocket->bytesAvailable() > 0)
{
while(inSocket->hasPendingDatagrams()) {
// Receive datagram
QByteArray datagram;
datagram.resize(inSocket->pendingDatagramSize());