From a070c4c50134cf274a674ee73227289fde81b8ed Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Sat, 5 Nov 2022 08:12:37 +0000 Subject: [PATCH] Remove hardcoded VIA keycode range (#18956) --- keyboards/cannonkeys/satisfaction75/satisfaction75.h | 2 +- keyboards/nullbitsco/nibble/keymaps/via/keymap.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/keyboards/cannonkeys/satisfaction75/satisfaction75.h b/keyboards/cannonkeys/satisfaction75/satisfaction75.h index c6dbc31f1bb..ea71345a385 100644 --- a/keyboards/cannonkeys/satisfaction75/satisfaction75.h +++ b/keyboards/cannonkeys/satisfaction75/satisfaction75.h @@ -25,7 +25,7 @@ typedef union { // Start these at the USER code range in VIA enum my_keycodes { - ENC_PRESS = 0x5F80, + ENC_PRESS = USER00, CLOCK_SET, OLED_TOGG }; diff --git a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c index 399fe552dfb..aab6a41af36 100644 --- a/keyboards/nullbitsco/nibble/keymaps/via/keymap.c +++ b/keyboards/nullbitsco/nibble/keymaps/via/keymap.c @@ -25,7 +25,7 @@ enum layer_names { #define KC_DISC_MUTE KC_F23 #define KC_DISC_DEAF KC_F24 #define NUM_CUST_KEYCODES (_NUM_CUST_KCS - SAFE_RANGE) -#define VIA_KEYCODE_RANGE 0x5F80 +#define VIA_KEYCODE_RANGE USER00 enum custom_keycodes { PROG = SAFE_RANGE,