From 22c76248cdfa06e761918405bb96987f4bea5243 Mon Sep 17 00:00:00 2001 From: Blake Drayson Date: Sat, 15 Jun 2024 10:44:09 +0100 Subject: [PATCH] Moved key repeat sleep fix to user space. --- keyboards/draytronics/elise/keymaps/blake_iso/keymap.c | 6 ++++++ keyboards/draytronics/elise/keymaps/default/keymap.c | 6 ++++++ keyboards/draytronics/elise/keymaps/default_iso/keymap.c | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/keyboards/draytronics/elise/keymaps/blake_iso/keymap.c b/keyboards/draytronics/elise/keymaps/blake_iso/keymap.c index c8a0ecd9598..adca91d842e 100644 --- a/keyboards/draytronics/elise/keymaps/blake_iso/keymap.c +++ b/keyboards/draytronics/elise/keymaps/blake_iso/keymap.c @@ -18,6 +18,12 @@ along with this program. If not, see . #include QMK_KEYBOARD_H +//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection. +#undef USB_POLLING_INTERVAL_MS +#define USB_POLLING_INTERVAL_MS 8 +#undef USB_SUSPEND_WAKEUP_DELAY +#define USB_SUSPEND_WAKEUP_DELAY 3000 + enum custom_layers { _BL, _FL, diff --git a/keyboards/draytronics/elise/keymaps/default/keymap.c b/keyboards/draytronics/elise/keymaps/default/keymap.c index ecafbf13c95..4637e339694 100644 --- a/keyboards/draytronics/elise/keymaps/default/keymap.c +++ b/keyboards/draytronics/elise/keymaps/default/keymap.c @@ -17,6 +17,12 @@ along with this program. If not, see . */ #include QMK_KEYBOARD_H +//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection. +#undef USB_POLLING_INTERVAL_MS +#define USB_POLLING_INTERVAL_MS 8 +#undef USB_SUSPEND_WAKEUP_DELAY +#define USB_SUSPEND_WAKEUP_DELAY 3000 + enum custom_layers { _BL, _FL, diff --git a/keyboards/draytronics/elise/keymaps/default_iso/keymap.c b/keyboards/draytronics/elise/keymaps/default_iso/keymap.c index 02f4b9c1cc8..1aab7e16526 100644 --- a/keyboards/draytronics/elise/keymaps/default_iso/keymap.c +++ b/keyboards/draytronics/elise/keymaps/default_iso/keymap.c @@ -18,6 +18,12 @@ along with this program. If not, see . #include QMK_KEYBOARD_H +//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection. +#undef USB_POLLING_INTERVAL_MS +#define USB_POLLING_INTERVAL_MS 8 +#undef USB_SUSPEND_WAKEUP_DELAY +#define USB_SUSPEND_WAKEUP_DELAY 3000 + enum custom_layers { _BL, _FL,