diff --git a/Makefile b/Makefile index 2d80ad7738..8e64bfbb9b 100644 --- a/Makefile +++ b/Makefile @@ -468,11 +468,10 @@ TARGETS_FLASH = $(addsuffix _flash,$(VALID_TARGETS) ) ## _flash : build and flash a target $(TARGETS_FLASH): -ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE))) $(V0) $(MAKE) -j hex TARGET=$(subst _flash,,$@) +ifneq (,$(findstring /dev/ttyUSB,$(SERIAL_DEVICE))) $(V0) $(MAKE) tty_flash TARGET=$(subst _flash,,$@) else - $(V0) $(MAKE) -j binary TARGET=$(subst _flash,,$@) $(V0) $(MAKE) dfu_flash TARGET=$(subst _flash,,$@) endif