diff options
author | Toni <jeder@mail1a.de> | 2016-07-25 12:49:38 +0200 |
---|---|---|
committer | Toni <jeder@mail1a.de> | 2016-07-25 12:49:38 +0200 |
commit | 5e2e8c89e86fbabb65737789ff0545e3e8ac1610 (patch) | |
tree | ce13a00ccc10fdc147a0e8caa0c2a1bbabfda357 /tmk_core | |
parent | 5631f1436c356fb9e09138f186981dc9b6cb43a2 (diff) | |
parent | 8b94e26d7c3b30cc57d710a11e5651d15e8e3b20 (diff) |
Merge remote-tracking branch 'origin/master' into iso_split_rshift
whatever
Diffstat (limited to 'tmk_core')
-rw-r--r-- | tmk_core/avr.mk | 4 | ||||
-rw-r--r-- | tmk_core/protocol/lufa/descriptor.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk index 3bf2b34f88..6c03e1650e 100644 --- a/tmk_core/avr.mk +++ b/tmk_core/avr.mk @@ -107,6 +107,10 @@ flip: $(BUILD_DIR)/$(TARGET).hex batchisp -hardware usb -device $(MCU) -operation start reset 0 dfu: $(BUILD_DIR)/$(TARGET).hex sizeafter + until dfu-programmer $(MCU) get bootloader-version; do\ + echo "Error: Bootloader not found. Trying again in 5s." ;\ + sleep 5 ;\ + done ifneq (, $(findstring 0.7, $(shell dfu-programmer --version 2>&1))) dfu-programmer $(MCU) erase --force else diff --git a/tmk_core/protocol/lufa/descriptor.c b/tmk_core/protocol/lufa/descriptor.c index 850a20fdb3..539a58d66b 100644 --- a/tmk_core/protocol/lufa/descriptor.c +++ b/tmk_core/protocol/lufa/descriptor.c @@ -140,9 +140,9 @@ const USB_Descriptor_HIDReport_Datatype_t PROGMEM ExtrakeyReport[] = HID_RI_USAGE(8, 0x80), /* System Control */ HID_RI_COLLECTION(8, 0x01), /* Application */ HID_RI_REPORT_ID(8, REPORT_ID_SYSTEM), - HID_RI_LOGICAL_MINIMUM(16, 0x0001), + HID_RI_LOGICAL_MINIMUM(16, 0x0081), HID_RI_LOGICAL_MAXIMUM(16, 0x00B7), - HID_RI_USAGE_MINIMUM(16, 0x0001), /* System Power Down */ + HID_RI_USAGE_MINIMUM(16, 0x0081), /* System Power Down */ HID_RI_USAGE_MAXIMUM(16, 0x00B7), /* System Display LCD Autoscale */ HID_RI_REPORT_SIZE(8, 16), HID_RI_REPORT_COUNT(8, 1), |