From 5abf12bdb2fa131e840d89a09fd11e8da0e2f433 Mon Sep 17 00:00:00 2001 From: Sudar Date: Tue, 2 Jul 2013 08:41:19 +0530 Subject: Move wait-for-reconnection logic inside ard-reset-arduino When a Leonardo based board is reset, the port disappears and we need to wait till it comes back. Earlier this logic was handled by a separate shell script. Now the logic is moved inside the ard-reset-arduino perl script. This is done to reduce the number of binaries that are needed by the makefile. Fix #95 --- arduino-mk/Arduino.mk | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'arduino-mk') diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index 12ad2f6..2fb9e3e 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -468,15 +468,6 @@ ifndef RESET_CMD endif endif -ifndef WAIT_CONNECTION_CMD - ifdef LEO_RESET - WAIT_CONNECTION_CMD = \ - $(ARDMK_PATH)/wait-connection-leonardo $(call get_arduino_port) - else - WAIT_CONNECTION_CMD = - endif -endif - ifeq ($(BOARD_TAG),leonardo) ERROR_ON_LEONARDO = $(error On leonardo, raw_xxx operation is not supported) else @@ -1024,7 +1015,6 @@ raw_eeprom: $(TARGET_HEX) verify_size reset: $(call arduino_output,Resetting Arduino...) $(RESET_CMD) - $(WAIT_CONNECTION_CMD) # 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 -- cgit v1.2.3