1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-30 16:24:09 +03:00

toggling DTR explicitly before upload (and adding setDTR to serial.java)

This commit is contained in:
David A. Mellis
2007-07-19 00:26:08 +00:00
parent b9569c389e
commit 084b860e60
2 changed files with 12 additions and 0 deletions

View File

@ -72,6 +72,15 @@ public abstract class Uploader implements MessageConsumer {
Thread.sleep(100);
} catch (InterruptedException e) {}
}
serialPort.setDTR(false);
try {
Thread.sleep(100);
} catch (InterruptedException e) {}
serialPort.setDTR(true);
serialPort.dispose();
}