Device: Fix bootloader phases

This commit is contained in:
Yasser Yassine
2025-11-04 12:37:19 -05:00
committed by Kyle Schwarz
parent 615b7d8d56
commit 39b54d8c4e
19 changed files with 47 additions and 22 deletions
+7 -1
View File
@@ -435,7 +435,13 @@ bool Device::reconnect(std::chrono::milliseconds timeout, std::chrono::milliseco
// Pause reads again
com->pauseReads();
}
return com->open();
if(com->open()) {
return true;
} else {
if(readsArePaused) {
com->resumeReads();
}
}
}
}
std::this_thread::sleep_for(interval);