aboutsummaryrefslogtreecommitdiff
path: root/arduino-mk
diff options
context:
space:
mode:
authorJan Gosmann <jan@hyper-world.de>2012-11-01 12:01:54 +0100
committerJan Gosmann <jan@hyper-world.de>2012-11-01 12:03:32 +0100
commitbc8caf8358dfb1c87bcbdef107fe5a7d74b37c4a (patch)
tree814b0767e3c289f001740cc433df43b67b7cb781 /arduino-mk
parent99890b253540f3ea0f2706ed4c3a7b1f15549bdc (diff)
Fixing problem of hanging upload.
Diffstat (limited to 'arduino-mk')
-rw-r--r--arduino-mk/Arduino.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk
index 8fc8e5c..84d6573 100644
--- a/arduino-mk/Arduino.mk
+++ b/arduino-mk/Arduino.mk
@@ -848,6 +848,8 @@ raw_upload: $(TARGET_HEX)
reset:
$(RESET_CMD) $(ARD_PORT)
+ sleep 1 # If avrdude is called to early after the reset, the upload may
+ # hang.
# stty on MacOS likes -F, but on Debian it likes -f redirecting
# stdin/out appears to work but generates a spurious error on MacOS at