Merge pull request #144 from UltimateHackingKeyboard/sleep-wake

Make some improvements to the sleep/wake code
This commit is contained in:
László Monda
2018-07-26 22:47:40 +02:00
committed by GitHub
3 changed files with 28 additions and 21 deletions
+2 -2
View File
@@ -425,11 +425,11 @@ void UpdateUsbReports(void)
KeyStates[SlotId_RightKeyboardHalf][keyId].current = RightKeyMatrix.keyStates[keyId];
}
if (IsHostSleeping) {
if (SleepModeActive) {
for (uint8_t slotId = 0; slotId < SLOT_COUNT; slotId++) {
for (uint8_t keyId = 0; keyId < MAX_KEY_COUNT_PER_MODULE; keyId++) {
if (KeyStates[slotId][keyId].current) {
WakeUpHost(true);
WakeUpHost();
return;
}
}