From c9727199d4489ba1d99624ec3322dd44e0e981fc Mon Sep 17 00:00:00 2001 From: Michael Richters Date: Tue, 20 Feb 2018 10:40:20 -0600 Subject: [PATCH] Corrected macro for HID_CONSUMER_AC_DOWNLOAD These macros were copied and pasted, I'm guessing from the USB HID Usage Tables document, where this keycode is identified with a parenthetical, unlike all of the others around it: `AC Download (Save Target As)`. When automatically converted into a preprocessor macro, it gets a trailing underscore and an argument, which is not what we want. This change won't actually fix anything that's currently broken, but it might matter someday. --- src/HIDTables.h | 2 +- src/key_defs_consumerctl.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/HIDTables.h b/src/HIDTables.h index 0df4c8b4..428b6d8d 100644 --- a/src/HIDTables.h +++ b/src/HIDTables.h @@ -659,7 +659,7 @@ #define HID_CONSUMER_AC_SEND 0x28C // HID type SEL #define HID_CONSUMER_AC_ATTACH_FILE 0x28D // HID type SEL #define HID_CONSUMER_AC_UPLOAD 0x28E // HID type SEL -#define HID_CONSUMER_AC_DOWNLOAD_(SAVE_TARGET_AS) 0x28F // HID type SEL +#define HID_CONSUMER_AC_DOWNLOAD 0x28F // HID type SEL #define HID_CONSUMER_AC_SET_BORDERS 0x290 // HID type SEL #define HID_CONSUMER_AC_INSERT_ROW 0x291 // HID type SEL #define HID_CONSUMER_AC_INSERT_COLUMN 0x292 // HID type SEL diff --git a/src/key_defs_consumerctl.h b/src/key_defs_consumerctl.h index 807a4e87..a04fd4a9 100644 --- a/src/key_defs_consumerctl.h +++ b/src/key_defs_consumerctl.h @@ -367,7 +367,7 @@ #define Consumer_AC_Send CONSUMER_KEY(HID_CONSUMER_AC_SEND, KEY_FLAGS | HID_TYPE_SEL) #define Consumer_AC_AttachFile CONSUMER_KEY(HID_CONSUMER_AC_ATTACH_FILE, KEY_FLAGS | HID_TYPE_SEL) #define Consumer_AC_Upload CONSUMER_KEY(HID_CONSUMER_AC_UPLOAD, KEY_FLAGS | HID_TYPE_SEL) -#define Consumer_AC_Download CONSUMER_KEY(HID_CONSUMER_AC_DOWNLOAD_(SAVE_TARGET_AS), KEY_FLAGS | HID_TYPE_SEL) +#define Consumer_AC_Download CONSUMER_KEY(HID_CONSUMER_AC_DOWNLOAD, KEY_FLAGS | HID_TYPE_SEL) #define Consumer_AC_SetBorders CONSUMER_KEY(HID_CONSUMER_AC_SET_BORDERS, KEY_FLAGS | HID_TYPE_SEL) #define Consumer_AC_InsertRow CONSUMER_KEY(HID_CONSUMER_AC_INSERT_ROW, KEY_FLAGS | HID_TYPE_SEL) #define Consumer_AC_InsertColumn CONSUMER_KEY(HID_CONSUMER_AC_INSERT_COLUMN, KEY_FLAGS | HID_TYPE_SEL)