From 5c6200b5a7289b65c1fa74572a1d941af4613636 Mon Sep 17 00:00:00 2001 From: Haobo Gu Date: Mon, 9 Dec 2024 11:05:37 +0800 Subject: [PATCH] feat(usb): enable remote wakeup Signed-off-by: Haobo Gu --- rmk/CHANGELOG.md | 1 + rmk/src/usb/mod.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/rmk/CHANGELOG.md b/rmk/CHANGELOG.md index c6508ff4..a83ee176 100644 --- a/rmk/CHANGELOG.md +++ b/rmk/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Support `direct_pin` type matrix for split configurations - Add `clear_storage` option +- Enable USB remote wakeup ### Changed diff --git a/rmk/src/usb/mod.rs b/rmk/src/usb/mod.rs index a7cd1d17..342c73e5 100644 --- a/rmk/src/usb/mod.rs +++ b/rmk/src/usb/mod.rs @@ -88,6 +88,7 @@ impl> KeyboardUsbDevice<'static, D> { usb_config.product = Some(keyboard_config.product_name); usb_config.serial_number = Some(keyboard_config.serial_number); usb_config.max_power = 450; + usb_config.supports_remote_wakeup = true; // Required for windows compatibility. usb_config.max_packet_size_0 = 64;