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