Moved key repeat sleep fix to user space.

This commit is contained in:
Blake Drayson 2024-06-15 11:14:26 +01:00
parent d8542e80d6
commit 0df120954f
4 changed files with 19 additions and 23 deletions

View File

@ -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 <http://www.gnu.org/licenses/>.
*/
//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

View File

@ -18,6 +18,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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,

View File

@ -17,6 +17,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#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,

View File

@ -18,6 +18,12 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#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,