diff --git a/update.cpp b/update.cpp index 223d47b..9ab08d3 100644 --- a/update.cpp +++ b/update.cpp @@ -466,15 +466,21 @@ bool Update::updateDC(QString bFile) const { return false; } if (!startBootloader()) { + // even when start seems to fail, stopping the boot loader does not harm + stopBootloader(); return false; } + if (!downloadBinaryToDC(bFile)) { stopBootloader(); qCritical() << "updating dc: " << bFile << "...FAILED"; return false; } qInfo() << "updating dc: " << bFile << "...OK"; + stopBootloader(); + //resetDeviceController(); + QThread::sleep(3); return true; }