Even though the current code seems to be working fine, call KeyMatrix_Init() before InitKeyScanner() just to be sure.

This commit is contained in:
László Monda
2017-11-14 02:40:51 +01:00
parent 5c84620704
commit 4c97238999
2 changed files with 2 additions and 3 deletions

View File

@@ -4,6 +4,7 @@
#include "bootloader.h"
#include <stdio.h>
#include "config.h"
#include "key_scanner.h"
DEFINE_BOOTLOADER_CONFIG_AREA(I2C_ADDRESS_LEFT_KEYBOARD_HALF_BOOTLOADER)
@@ -41,9 +42,9 @@ int main(void)
InitClock();
InitPeripherals();
KeyMatrix_Init(&keyMatrix);
InitKeyScanner();
while (1) {
// KeyMatrix_Scan(&keyMatrix);
__WFI();
}
}