Merge pull request #8 from Pieterv24/feature/secureMatrixTest

Reintroduced matrix tester, but it's disabled by default and requires…
This commit is contained in:
xyzz 2021-04-22 21:23:07 -04:00 committed by GitHub
commit 41f26e635c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -256,8 +256,9 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
}
case id_switch_matrix_state: {
#ifdef VIAL_ENABLE
/* We don't need this wannabe keylogger */
goto skip;
/* Disable wannabe keylogger unless unlocked */
if (!vial_unlocked)
goto skip;
#endif
#if ((MATRIX_COLS / 8 + 1) * MATRIX_ROWS <= 28)

View File

@ -19,7 +19,7 @@
#include <inttypes.h>
#include <stdbool.h>
#define VIAL_PROTOCOL_VERSION ((uint32_t)0x00000002)
#define VIAL_PROTOCOL_VERSION ((uint32_t)0x00000003)
void vial_handle_cmd(uint8_t *data, uint8_t length);