diff --git a/DownloadDCFirmware/update.cpp b/DownloadDCFirmware/update.cpp index 166c785..b57bbfe 100644 --- a/DownloadDCFirmware/update.cpp +++ b/DownloadDCFirmware/update.cpp @@ -209,10 +209,10 @@ bool Update::startBootloader() const { return true; #else - int nTry = 5; + int nTry = 10; while (--nTry >= 0) { m_hw->bl_startBL(); - QThread::msleep(5000); + QThread::msleep(1000); m_hw->bl_checkBL(); if (m_hw->bl_isUp()) { qInfo() << "starting bootloader...OK"; @@ -220,6 +220,7 @@ bool Update::startBootloader() const { return true; } else { qCritical() << "bootloader not up (" << nTry << ")"; + qCritical() << "IS BOOTLOADER INSTALLED ???"; } } qCritical() << "starting bootloader...FAILED"; @@ -241,7 +242,7 @@ bool Update::stopBootloader() const { int nTry = 5; while (--nTry >= 0) { m_hw->bl_stopBL(); - QThread::msleep(500); + QThread::msleep(1000); if (!m_hw->bl_isUp()) { qInfo() << "stopping bootloader...OK"; return true; @@ -399,6 +400,7 @@ int Update::run() { // TODO resetDeviceController(); if (startBootloader()) { +#if 0 int currentBlock = 0; DownloadResult res = DownloadResult::OK; qInfo() << nextTimePoint().toUtf8().constData() << "64-byte block" << currentBlock; @@ -410,7 +412,7 @@ int Update::run() { } else break; } } - +#endif #if 0 qCritical() << "DownloadThread::run(): last 64-byte block %04d" << currentBlock;