From 61afdfc3256daf74b27d01fe1ececcf3ca3c1246 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Tue, 27 Jun 2023 17:30:56 +0200 Subject: [PATCH] resetDeviceController(): use bl_rebootDC(). --- update.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/update.cpp b/update.cpp index cc3810a..a22fc87 100644 --- a/update.cpp +++ b/update.cpp @@ -335,16 +335,11 @@ void Update::closeSerial() const { bool Update::resetDeviceController() const { qDebug() << "resetting device controller..."; - //if (stopBootloader()) { // first stop a (maybe) running bootloader - // std::this_thread::sleep_for(std::chrono::milliseconds(1000)); m_hw->bl_rebootDC(); // wait maximally 3 seconds, before starting bootloader QThread::msleep(1500); qInfo() << "resetting device controller...OK"; return true; - //} - //qCritical() << "stopping bootloader...FAILED"; - //return false; } QByteArray Update::loadBinaryDCFile(QString filename) const {