From 7a692e6432cd6e9811909b7b2c92222a34824f68 Mon Sep 17 00:00:00 2001 From: Mikastiv Date: Sun, 21 Jan 2024 19:52:17 -0500 Subject: [PATCH] fix rgb sleep for split kb --- tmk_core/protocol/lufa/lufa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 553f69b1e46..6d2f8fc0cf5 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -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();