Remove DisableKeyMatrixScanState
This commit is contained in:
@@ -26,8 +26,6 @@ key_matrix_t keyMatrix = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
volatile bool DisableKeyMatrixScanState;
|
|
||||||
|
|
||||||
#define ALWAYS_ENTER_BOOTLOADER (0)
|
#define ALWAYS_ENTER_BOOTLOADER (0)
|
||||||
/*! set to 1 for easier bootloader debugging. With this, the KL03 always enters bootloader mode after reset */
|
/*! set to 1 for easier bootloader debugging. With this, the KL03 always enters bootloader mode after reset */
|
||||||
|
|
||||||
@@ -41,9 +39,7 @@ int main(void)
|
|||||||
JumpToBootloader(); /* << EST: \todo Temporary only */
|
JumpToBootloader(); /* << EST: \todo Temporary only */
|
||||||
#endif
|
#endif
|
||||||
while (1) {
|
while (1) {
|
||||||
if (!DisableKeyMatrixScanState) {
|
KeyMatrix_Scan(&keyMatrix);
|
||||||
KeyMatrix_Scan(&keyMatrix);
|
|
||||||
}
|
|
||||||
asm("wfi");
|
asm("wfi");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user