We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d0abe8 commit 22f21ddCopy full SHA for 22f21dd
boardsetupwindow.cpp
@@ -483,9 +483,14 @@ bool BoardSetupWindow::tryFirmwareUpload(){
483
testResultMsg = "The firmware file path is non-existent.";
484
return false;
485
}
486
- for(int j = 15; j>-1; j--){
+ for(int j = 25; j >= 0; j--){
487
ui->firmwareLabel->setText("Waiting for Reboot: " + QString::number(j) + " s");
488
Utility::sleepWithEventLoop(1000);
489
+
490
+ if (j < 20 && mVesc->lastPortAvailable()) {
491
+ Utility::sleepWithEventLoop(1000);
492
+ break;
493
+ }
494
495
bool reconnected = trySerialConnect();
496
if(reconnected){
0 commit comments