mirror of
https://github.com/thunderbug1/Spherebot-Host-GUI.git
synced 2026-03-19 00:06:48 +01:00
removing bugs
This commit is contained in:
@@ -13,11 +13,17 @@ void rxThread::receiveData()
|
||||
{
|
||||
if(bot->port->canReadLine())
|
||||
{
|
||||
line = bot->port->readLine(1024);
|
||||
//qDebug()<<"receiving raw: " << line << endl;/////////////////////////////
|
||||
while(line.endsWith('\n')) line.chop(1);
|
||||
qDebug()<<"receiving: " << line << endl;/////////////////////////////
|
||||
emit lineReceived(line);
|
||||
while(bot->port->canReadLine())
|
||||
{
|
||||
line = bot->port->readLine(1024);
|
||||
//qDebug()<<"receiving raw: " << line << endl;/////////////////////////////
|
||||
while(line.endsWith('\n')) line.chop(1);
|
||||
if( line != "")
|
||||
{
|
||||
qDebug()<<"receiving: " << line << endl;/////////////////////////////
|
||||
emit lineReceived(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user