mirror of https://github.com/noisymime/Arduino.git
Workaround for IDE crash when uploading on Leonardo (and derivatives) on Linux
This commit is contained in:
parent
c4753e97b3
commit
9f84ae1d64
|
@ -141,7 +141,7 @@ public class SerialUploader extends Uploader {
|
|||
// sketch serial port reconnects (or timeout after a few seconds if the
|
||||
// sketch port never comes back). Doing this saves users from accidentally
|
||||
// opening Serial Monitor on the soon-to-be-orphaned bootloader port.
|
||||
Thread.sleep(500);
|
||||
Thread.sleep(1000);
|
||||
long timeout = System.currentTimeMillis() + 2000;
|
||||
while (timeout > System.currentTimeMillis()) {
|
||||
List<String> portList = Serial.list();
|
||||
|
|
Loading…
Reference in New Issue