diff options
| author | Simon John <git@the-jedi.co.uk> | 2013-06-20 21:34:40 +0200 |
|---|---|---|
| committer | Sudar <sudar@sudarmuthu.com> | 2013-06-21 08:37:11 +0530 |
| commit | c284ec93dd939b4f8c4c0ab1eccf1516784de1dc (patch) | |
| tree | e5e2bf691f237d1320253485a62ce32c63f13991 /arduino-mk/Arduino.mk | |
| parent | 4e22abe0dee5b76eed63bd18eb47d5cc2b16f212 (diff) | |
Add support for reseting "Micro" Arduino.
Micro can be reset using Leonardo reset functions itself. So call
Leonardo reset functions for Micro as well.
The reset function seems to have some issues for Micro and is not
100% reliable, like Leonardo. See comments in #30.
Fix #80
Fix #83
Diffstat (limited to 'arduino-mk/Arduino.mk')
| -rw-r--r-- | arduino-mk/Arduino.mk | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/arduino-mk/Arduino.mk b/arduino-mk/Arduino.mk index fefde1e..edc36e5 100644 --- a/arduino-mk/Arduino.mk +++ b/arduino-mk/Arduino.mk @@ -380,8 +380,16 @@ endif ######################################################################## # Reset # +ifeq ($(BOARD_TAG),leonardo) + LEO_RESET = 1 +endif + +ifeq ($(BOARD_TAG),micro) + LEO_RESET = 1 +endif + ifndef RESET_CMD - ifeq ($(BOARD_TAG),leonardo) + ifdef LEO_RESET RESET_CMD = $(ARDMK_PATH)/ard-reset-arduino --leonardo \ $(ARD_RESET_OPTS) $(call get_arduino_port) else @@ -391,7 +399,7 @@ ifndef RESET_CMD endif ifndef WAIT_CONNECTION_CMD - ifeq ($(BOARD_TAG),leonardo) + ifdef LEO_RESET WAIT_CONNECTION_CMD = \ $(ARDMK_PATH)/wait-connection-leonardo $(call get_arduino_port) else |
