From ba3ac40b9d063a59bf532339e2335b60386c4ea7 Mon Sep 17 00:00:00 2001 From: Denis Chertykov Date: Sun, 18 Jan 2015 20:18:43 +0300 Subject: [PATCH] Remove hardcoded programmer option (-cwiring). Use variable AVRDUDE_PROGRAMMER. Change default value of AVRDUDE_PROGRAMMER to 'wiring'. --- Marlin/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Makefile b/Marlin/Makefile index de33ac123c..56e5dda734 100644 --- a/Marlin/Makefile +++ b/Marlin/Makefile @@ -49,7 +49,7 @@ AVR_TOOLS_PATH ?= #Programmer configuration UPLOAD_RATE ?= 115200 -AVRDUDE_PROGRAMMER ?= arduino +AVRDUDE_PROGRAMMER ?= wiring # on most linuxes this will be /dev/ttyACM0 or /dev/ttyACM1 UPLOAD_PORT ?= /dev/arduino @@ -361,7 +361,7 @@ else AVRDUDE_CONF = $(ARDUINO_INSTALL_DIR)/hardware/tools/avr/etc/avrdude.conf endif AVRDUDE_FLAGS = -q -q -D -C$(AVRDUDE_CONF) \ - -p$(MCU) -P$(AVRDUDE_PORT) -c $(AVRDUDE_PROGRAMMER) -cwiring\ + -p$(MCU) -P$(AVRDUDE_PORT) -c$(AVRDUDE_PROGRAMMER) \ -b$(UPLOAD_RATE) # Define all object files.