forked from GerhardHoffmann/DCLibraries
Keep test code.
This commit is contained in:
parent
0344150950
commit
6176285b89
@ -13,7 +13,13 @@ ReportingThread::~ReportingThread() {
|
|||||||
// download thread running in ca-slave sends reports download process to
|
// download thread running in ca-slave sends reports download process to
|
||||||
// update tool
|
// update tool
|
||||||
void ReportingThread::run() {
|
void ReportingThread::run() {
|
||||||
|
hwapi *hw = m_hw->getAPI();
|
||||||
|
emit hw->hwapi_reportDCDownloadStatus("test");
|
||||||
|
|
||||||
|
qCritical() << "nach emit";
|
||||||
|
QThread::sleep(4);
|
||||||
|
|
||||||
|
#if 0
|
||||||
int cnt = 10;
|
int cnt = 10;
|
||||||
while (!m_hw->dcDownloadRunning()) {
|
while (!m_hw->dcDownloadRunning()) {
|
||||||
if (--cnt > 0) {
|
if (--cnt > 0) {
|
||||||
@ -52,4 +58,5 @@ void ReportingThread::run() {
|
|||||||
QString("ERROR DOWNLOADING %1 (total blocks=%2, sent blocks=%3)")
|
QString("ERROR DOWNLOADING %1 (total blocks=%2, sent blocks=%3)")
|
||||||
.arg(m_fileToDownload).arg(tnr).arg(cnr));
|
.arg(m_fileToDownload).arg(tnr).arg(cnr));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user