diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-20 17:06:22 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2012-08-20 17:06:34 -0400 |
commit | e34badc2102112fb4a42886d1b0e450320563d0d (patch) | |
tree | 1076e68c9b6c391fe845949863f261a249331bce | |
parent | 4b537d6762a27f7b6441c9bf2af511519f1e1456 (diff) | |
download | librambutan-e34badc2102112fb4a42886d1b0e450320563d0d.tar.gz librambutan-e34badc2102112fb4a42886d1b0e450320563d0d.zip |
reset.py fixups for OS X 10.8.
As discussed on this forum thread:
http://forums.leaflabs.com/topic.php?id=2451
Signed-off-by: Marti Bolivar <mbolivar@leaflabs.com>
-rwxr-xr-x | support/scripts/reset.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/support/scripts/reset.py b/support/scripts/reset.py index 6a24f6a..54a7aee 100755 --- a/support/scripts/reset.py +++ b/support/scripts/reset.py @@ -111,9 +111,10 @@ try: ser.setDTR(0) time.sleep(0.01) ser.write("1EAF".encode("ascii")) + ser.flush() - # Windows quirk: delay a bit before proceeding - if plat_sys == 'Windows': time.sleep(0.5) + # Delay a bit before proceeding + time.sleep(0.1) finally: # ok we're done here ser.close() |