Fix typo+basic power management

This commit is contained in:
Robert Csordas
2016-11-12 20:31:59 +01:00
parent d232e774b7
commit b3bc436bbb
2 changed files with 4 additions and 2 deletions

View File

@@ -9,5 +9,7 @@ void main() {
LedDriver_EnableAllLeds(); LedDriver_EnableAllLeds();
InitUsb(); InitUsb();
while (1); while (1){
asm("wfi");
}
} }

View File

@@ -157,7 +157,7 @@ static uint8_t getKeycode(uint8_t keyId)
{ {
int activeIndex = (modifierState & MOD_PRESSED) ? 1 : 0; int activeIndex = (modifierState & MOD_PRESSED) ? 1 : 0;
if (keyId<sizeof(scancodes)) if (keyId<sizeof(defaultLayout))
return defaultLayout[keyId][activeIndex]; return defaultLayout[keyId][activeIndex];
else else
return 0; return 0;