瀏覽代碼

[Keyboard] Fix detection of Iris rev number used to set bootloader (#6226)

Danny 6 年之前
父節點
當前提交
2c41b69d3e
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      keyboards/keebio/iris/rules.mk
  2. 2 2
      keyboards/keebio/nyquist/rules.mk

+ 1 - 1
keyboards/keebio/iris/rules.mk

@@ -7,7 +7,7 @@ F_USB = $(F_CPU)
 #     This definition is optional, and if your keyboard supports multiple bootloaders of
 #     different sizes, comment this out, and the correct address will be loaded
 #     automatically (+60). See bootloader.mk for all options.
-ifeq ($(strip $(KEYBOARD)), iris/rev3)
+ifneq (, $(findstring rev3, $(KEYBOARD)))
     BOOTLOADER = qmk-dfu
 else
     BOOTLOADER = caterina

+ 2 - 2
keyboards/keebio/nyquist/rules.mk

@@ -38,8 +38,8 @@ F_USB = $(F_CPU)
 #     This definition is optional, and if your keyboard supports multiple bootloaders of
 #     different sizes, comment this out, and the correct address will be loaded
 #     automatically (+60). See bootloader.mk for all options.
-ifeq ($(strip $(KEYBOARD)), nyquist/rev3)
-    BOOTLOADER = dfu
+ifneq (, $(findstring rev3, $(KEYBOARD)))
+    BOOTLOADER = qmk-dfu
 else
     BOOTLOADER = caterina
 endif