application logic fix

This commit is contained in:
Alex
2014-02-27 13:35:53 +01:00
parent a335a38113
commit 5ee809680d
4 changed files with 24 additions and 5 deletions

View File

@@ -8,7 +8,12 @@ txThread::txThread()
watchdogTimer->setInterval(1000); //because of sudden stops during sending a file
} //I use a watchdogTimer to force sending the next
//command if there is a too long pause of communication
txThread::~txThread() //This is only a workaround!!
//This is only a workaround!!
//EDIT: I found out that this sometimes happens because of timing issues in the firmware.
txThread::~txThread()
{
}
@@ -51,7 +56,9 @@ void txThread::run()
{
qDebug()<<"entering run";
lineCounter = 0;
#ifdef Watchdog
watchdogTimer->start();
#endif
sendNext();
}
@@ -73,7 +80,9 @@ void txThread::sendNext()
emit fileTransmitted();
return;
}
#ifdef Watchdog
watchdogTimer->start();
#endif
if(tmp.contains("G4"))
{
msleep(300);