From eb144530d8194f78247f2b02cc5d8c962bb296f1 Mon Sep 17 00:00:00 2001 From: daniel-k Date: Fri, 25 Sep 2015 17:39:09 +0200 Subject: [PATCH] samr21-xpro: connect to correct tty when given SERIAL --- boards/samr21-xpro/Makefile.include | 1 + 1 file changed, 1 insertion(+) diff --git a/boards/samr21-xpro/Makefile.include b/boards/samr21-xpro/Makefile.include index 5304652878..e472d36b60 100644 --- a/boards/samr21-xpro/Makefile.include +++ b/boards/samr21-xpro/Makefile.include @@ -17,6 +17,7 @@ include $(RIOTBOARD)/Makefile.include.serial # Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash ifneq (,$(SERIAL)) export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)" +PORT_LINUX := $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh $(SERIAL)) endif # this board uses openocd