From 9d66875636614172f7323c5986bfc3cf93b15c13 Mon Sep 17 00:00:00 2001 From: tmk Date: Thu, 7 Sep 2017 09:00:57 +0900 Subject: [PATCH] core: Fix dfu-programmer version check --- tmk_core/rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.46.2