Fix typo+basic power management
This commit is contained in:
@@ -9,5 +9,7 @@ void main() {
|
|||||||
LedDriver_EnableAllLeds();
|
LedDriver_EnableAllLeds();
|
||||||
InitUsb();
|
InitUsb();
|
||||||
|
|
||||||
while (1);
|
while (1){
|
||||||
|
asm("wfi");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user