Workaround for IDE crash when uploading on Leonardo (and derivatives) on Linux

This commit is contained in:
Cristian Maglie 2013-06-28 09:50:51 +02:00
parent c4753e97b3
commit 9f84ae1d64
1 changed files with 1 additions and 1 deletions

View File

@ -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();