Browse Source

fix rgb sleep for split kb

pull/22943/head
Mikastiv 3 months ago
parent
commit
7a692e6432
Failed to extract signature
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tmk_core/protocol/lufa/lufa.c

+ 2
- 1
tmk_core/protocol/lufa/lufa.c View File

@ -855,7 +855,8 @@ void protocol_pre_task(void) {
dprintln("suspending keyboard");
while (USB_DeviceState == DEVICE_STATE_Suspended) {
suspend_power_down();
if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
const bool wakeup = suspend_wakeup_condition();
if (USB_Device_RemoteWakeupEnabled && wakeup) {
USB_Device_SendRemoteWakeup();
clear_keyboard();


Loading…
Cancel
Save