mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Device: Fix bootloader phases
This commit is contained in:
committed by
Kyle Schwarz
parent
615b7d8d56
commit
39b54d8c4e
+7
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user