removing bugs

This commit is contained in:
Alex
2016-02-27 16:13:38 +01:00
parent 4cf1b7a775
commit ff284a3523
28 changed files with 7273 additions and 244 deletions

View File

@@ -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);
}
}
}
}