From 68fc6abf748487c0d24fa217ea788fb974b67697 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 5 Sep 2017 21:22:41 -0400 Subject: [PATCH] avr: Check that FLASH_DEVICE is set on "make flash" command Signed-off-by: Kevin O'Connor --- src/avr/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/src/avr/Makefile b/src/avr/Makefile index 94cebfff..364d53f8 100644 --- a/src/avr/Makefile +++ b/src/avr/Makefile @@ -25,4 +25,5 @@ $(OUT)klipper.elf.hex: $(OUT)klipper.elf flash: $(OUT)klipper.elf.hex @echo " Flashing $(FLASH_DEVICE) via avrdude" + $(Q)if [ -z $(FLASH_DEVICE) ]; then echo "Please specify FLASH_DEVICE"; exit 1; fi $(Q)avrdude -p$(CONFIG_MCU) -cwiring -P"$(FLASH_DEVICE)" -D -U"flash:w:$(OUT)klipper.elf.hex:i"