From 0df120954f029f292726d84016d41877fc5df339 Mon Sep 17 00:00:00 2001 From: Blake Drayson Date: Sat, 15 Jun 2024 11:14:26 +0100 Subject: [PATCH] Moved key repeat sleep fix to user space. --- keyboards/draytronics/elise_v2/config.h | 23 ------------------- .../elise_v2/keymaps/blake_iso/keymap.c | 7 ++++++ .../elise_v2/keymaps/default/keymap.c | 6 +++++ .../elise_v2/keymaps/default_iso/keymap.c | 6 +++++ 4 files changed, 19 insertions(+), 23 deletions(-) delete mode 100644 keyboards/draytronics/elise_v2/config.h diff --git a/keyboards/draytronics/elise_v2/config.h b/keyboards/draytronics/elise_v2/config.h deleted file mode 100644 index 116beca483d..00000000000 --- a/keyboards/draytronics/elise_v2/config.h +++ /dev/null @@ -1,23 +0,0 @@ -/*Copyright 2021 Blake Drayson / Draytronics - -Contact info@draytronics.co.uk - -This program is free software: you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation, either version 2 of the License, or -(at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program. If not, see . -*/ - -//Fix to prevent key repeat on wake from sleep when using a KVM / non direct usb connection. -#pragma once - -#define USB_POLLING_INTERVAL_MS 8 -#define USB_SUSPEND_WAKEUP_DELAY 3000 diff --git a/keyboards/draytronics/elise_v2/keymaps/blake_iso/keymap.c b/keyboards/draytronics/elise_v2/keymaps/blake_iso/keymap.c index c8a0ecd9598..e045cd01af4 100644 --- a/keyboards/draytronics/elise_v2/keymaps/blake_iso/keymap.c +++ b/keyboards/draytronics/elise_v2/keymaps/blake_iso/keymap.c @@ -18,6 +18,13 @@ 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_v2/keymaps/default/keymap.c b/keyboards/draytronics/elise_v2/keymaps/default/keymap.c index 1989f22f97c..7d1f4bb1e50 100644 --- a/keyboards/draytronics/elise_v2/keymaps/default/keymap.c +++ b/keyboards/draytronics/elise_v2/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_v2/keymaps/default_iso/keymap.c b/keyboards/draytronics/elise_v2/keymaps/default_iso/keymap.c index 02f4b9c1cc8..1aab7e16526 100644 --- a/keyboards/draytronics/elise_v2/keymaps/default_iso/keymap.c +++ b/keyboards/draytronics/elise_v2/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,