Expose IsHostSleeping instead of IsHostSleeping()

This commit is contained in:
László Monda
2018-04-28 13:11:25 +02:00
parent 3d4d78387e
commit ec8301ae62
3 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -428,7 +428,7 @@ void UpdateUsbReports(void)
IsUsbMouseReportSent = false;
}
if ((previousLayer != LayerId_Base || !IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsHostSleeping()) {
if ((previousLayer != LayerId_Base || !IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsHostSleeping) {
WakeUpHost(true); // Wake up the computer if any key is pressed and the computer is sleeping.
}
}