Reintroduced matrix tester, but it's disabled by default and requires unlock

This commit is contained in:
Pieterv24 2021-04-22 22:00:50 +02:00
parent cc5961fe3f
commit 3968207f02
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);