Added Micro to the Leonardo reset functions
Probably fixes issue #80 although not 100% reliable (like Leo) see issue #30
This commit is contained in:
parent
4e22abe0de
commit
2abed1e725
2 changed files with 12 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -99,7 +99,7 @@ Specify the DTR pulse width in seconds.
|
|||
|
||||
=item --leonardo
|
||||
|
||||
Reset a Leonardo.
|
||||
Reset a Leonardo or Micro.
|
||||
|
||||
=back
|
||||
|
||||
|
@ -115,7 +115,7 @@ Patches are welcome.
|
|||
|
||||
Martin Oldfield, ex-atelier@mjo.tc
|
||||
|
||||
Support for Leonardo added by sej7278, https://github.com/sej7278
|
||||
Support for Leonardo/Micro added by sej7278, https://github.com/sej7278
|
||||
|
||||
Thanks to Daniele Vergini who suggested this to me, and supplied
|
||||
a command line version.
|
||||
|
|
Loading…
Reference in a new issue