From 990b84824acb1ca9548f6b7003e0dfd652f9cd81 Mon Sep 17 00:00:00 2001 From: Joel Challis Date: Fri, 18 Nov 2022 02:16:38 +0000 Subject: [PATCH] Disable onekey console by default (#19104) --- keyboards/handwired/onekey/bluepill_f103c6/config.h | 2 +- keyboards/handwired/onekey/info.json | 2 +- keyboards/handwired/onekey/keymaps/console/keymap.c | 8 ++++++++ keyboards/handwired/onekey/keymaps/console/rules.mk | 2 ++ keyboards/handwired/onekey/keymaps/hardware_id/rules.mk | 1 + keyboards/handwired/onekey/keymaps/oled/rules.mk | 1 + 6 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 keyboards/handwired/onekey/keymaps/console/rules.mk create mode 100644 keyboards/handwired/onekey/keymaps/hardware_id/rules.mk diff --git a/keyboards/handwired/onekey/bluepill_f103c6/config.h b/keyboards/handwired/onekey/bluepill_f103c6/config.h index 8b62ed86f230..e243d8685f0e 100644 --- a/keyboards/handwired/onekey/bluepill_f103c6/config.h +++ b/keyboards/handwired/onekey/bluepill_f103c6/config.h @@ -27,7 +27,7 @@ // This code does not fit into the really small flash of STM32F103x6 together // with CONSOLE_ENABLE=yes, and the debugging console is probably more -// important for the "okeney" testing firmware. In a real firmware you may be +// important for the "onekey" testing firmware. In a real firmware you may be // able to use these features if you keep the debugging console disabled. #define NO_ACTION_LAYER #define NO_ACTION_TAPPING diff --git a/keyboards/handwired/onekey/info.json b/keyboards/handwired/onekey/info.json index 0639ec99fd5d..339dfe5974e0 100644 --- a/keyboards/handwired/onekey/info.json +++ b/keyboards/handwired/onekey/info.json @@ -12,7 +12,7 @@ "bootmagic": false, "mousekey": false, "extrakey": true, - "console": true, + "console": false, "command": false, "nkro": false, "backlight": false, diff --git a/keyboards/handwired/onekey/keymaps/console/keymap.c b/keyboards/handwired/onekey/keymaps/console/keymap.c index b47fb59d17e1..3f5d0664f552 100644 --- a/keyboards/handwired/onekey/keymaps/console/keymap.c +++ b/keyboards/handwired/onekey/keymaps/console/keymap.c @@ -18,3 +18,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } return true; } + +void keyboard_post_init_user(void) { + // Customise these values to desired behaviour + debug_enable=true; + debug_matrix=true; + //debug_keyboard=true; + //debug_mouse=true; +} diff --git a/keyboards/handwired/onekey/keymaps/console/rules.mk b/keyboards/handwired/onekey/keymaps/console/rules.mk new file mode 100644 index 000000000000..7c83606d2d72 --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/console/rules.mk @@ -0,0 +1,2 @@ +CONSOLE_ENABLE = yes +DEBUG_MATRIX_SCAN_RATE_ENABLE = yes diff --git a/keyboards/handwired/onekey/keymaps/hardware_id/rules.mk b/keyboards/handwired/onekey/keymaps/hardware_id/rules.mk new file mode 100644 index 000000000000..15b7f725b26d --- /dev/null +++ b/keyboards/handwired/onekey/keymaps/hardware_id/rules.mk @@ -0,0 +1 @@ +CONSOLE_ENABLE = yes diff --git a/keyboards/handwired/onekey/keymaps/oled/rules.mk b/keyboards/handwired/onekey/keymaps/oled/rules.mk index 6b69e50dbbfb..83757b190967 100644 --- a/keyboards/handwired/onekey/keymaps/oled/rules.mk +++ b/keyboards/handwired/onekey/keymaps/oled/rules.mk @@ -1,3 +1,4 @@ OLED_ENABLE = yes OLED_DRIVER = SSD1306 TAP_DANCE_ENABLE = yes +CONSOLE_ENABLE = yes