diff --git a/app/src/processing/app/debug/AvrdudeUploader.java b/app/src/processing/app/debug/AvrdudeUploader.java index 5b9eef572..9e0cfb43c 100755 --- a/app/src/processing/app/debug/AvrdudeUploader.java +++ b/app/src/processing/app/debug/AvrdudeUploader.java @@ -96,14 +96,14 @@ public class AvrdudeUploader extends Uploader { .println(_("Forcing reset using 1200bps open/close on port ") + uploadPort); Serial.touchPort(uploadPort, 1200); + + // Scanning for available ports seems to open the port or + // otherwise assert DTR, which would cancel the WDT reset if + // it happened within 250 ms. So we wait until the reset should + // have already occured before we start scanning. + if (!Base.isMacOS()) Thread.sleep(300); } - // On Linux, scanning for available ports seems to open the port - // or otherwise assert DTR, which would cancel the WDT reset if - // it happened within 250 ms. So we wait until the reset should - // have already occured before we start scanning. - if (Base.isLinux()) Thread.sleep(300); - // Wait for a port to appear on the list int elapsed = 0; while (elapsed < 10000) {