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