Skip to content

Commit a63ec15

Browse files
sandeepmistryfacchinm
authored andcommitted
Apply extra 250ms after waitForUploadPort to all platforms
1 parent 5a69e51 commit a63ec15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,10 @@ public boolean uploadUsingPreferences(File sourcePath, String buildPath, String
145145
// have already occurred before we start scanning.
146146
actualUploadPort = waitForUploadPort(userSelectedUploadPort, before);
147147

148-
if (OSUtils.isMacOS()) {
149148
// on OS X, if the port is opened too quickly after it is detected,
150-
// a "Resource busy" error occurs, add a delay to workaround this
149+
// a "Resource busy" error occurs, add a delay to workaround this,
150+
// apply to other platforms as well.
151151
Thread.sleep(250);
152-
}
153152
}
154153
} catch (SerialException e) {
155154
throw new RunnerException(e);

0 commit comments

Comments
 (0)