From: tmk Date: Thu, 7 Sep 2017 00:00:57 +0000 (+0900) Subject: core: Fix dfu-programmer version check X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=9d66875636614172f7323c5986bfc3cf93b15c13;p=max%2Ftmk_keyboard.git core: Fix dfu-programmer version check --- diff --git a/tmk_core/rules.mk b/tmk_core/rules.mk index 66b4cbd8..0d0b6afb 100644 --- a/tmk_core/rules.mk +++ b/tmk_core/rules.mk @@ -427,7 +427,7 @@ dfu: $(TARGET).hex done @echo -ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) +ifneq (, $(findstring 0.7, $(shell dfu-programmer 2>/dev/null && dfu-programmer --version 2>&1))) dfu-programmer $(MCU) erase --force else dfu-programmer $(MCU) erase @@ -447,7 +447,7 @@ flip-ee: $(TARGET).hex $(TARGET).eep $(REMOVE) $(TARGET)eep.hex dfu-ee: $(TARGET).hex $(TARGET).eep -ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) +ifneq (, $(findstring 0.7, $(shell dfu-programmer 2>/dev/null && dfu-programmer --version 2>&1))) dfu-programmer $(MCU) flash --eeprom $(TARGET).eep else dfu-programmer $(MCU) flash-eeprom $(TARGET).eep