resetDeviceController(): use bl_rebootDC().
This commit is contained in:
parent
c34944af8b
commit
61afdfc325
@ -335,16 +335,11 @@ void Update::closeSerial() const {
|
|||||||
|
|
||||||
bool Update::resetDeviceController() const {
|
bool Update::resetDeviceController() const {
|
||||||
qDebug() << "resetting device controller...";
|
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();
|
m_hw->bl_rebootDC();
|
||||||
// wait maximally 3 seconds, before starting bootloader
|
// wait maximally 3 seconds, before starting bootloader
|
||||||
QThread::msleep(1500);
|
QThread::msleep(1500);
|
||||||
qInfo() << "resetting device controller...OK";
|
qInfo() << "resetting device controller...OK";
|
||||||
return true;
|
return true;
|
||||||
//}
|
|
||||||
//qCritical() << "stopping bootloader...FAILED";
|
|
||||||
//return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
QByteArray Update::loadBinaryDCFile(QString filename) const {
|
QByteArray Update::loadBinaryDCFile(QString filename) const {
|
||||||
|
Loading…
Reference in New Issue
Block a user