mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-29 18:52:13 +01:00
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…
x
Reference in New Issue
Block a user