From e34badc2102112fb4a42886d1b0e450320563d0d Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Mon, 20 Aug 2012 17:06:22 -0400 Subject: 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 --- support/scripts/reset.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'support') 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() -- cgit v1.2.3