resetDeviceController(): use bl_rebootDC().

This commit is contained in:
Gerhard Hoffmann 2023-06-27 17:30:56 +02:00
parent c34944af8b
commit 61afdfc325

View File

@ -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 {