The layer keys can now also wake up the computer

This commit is contained in:
Kristian Sloth Lauszus
2018-03-11 19:29:24 +01:00
parent 5d59540c51
commit c109a9e202
4 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -453,7 +453,7 @@ void UpdateUsbReports(void)
IsUsbMouseReportSent = false;
}
if ((!IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsComputerSleeping())
if ((previousLayer != LayerId_Base || !IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsComputerSleeping())
WakeupComputer(true); // Wake up the computer if any key is pressed and the computer is sleeping
Timer_SetCurrentTime(&lastUsbUpdateTime);