Skip to content

Commit

Permalink
Merge pull request #8 from Pieterv24/feature/secureMatrixTest
Browse files Browse the repository at this point in the history
Reintroduced matrix tester, but it's disabled by default and requires…
  • Loading branch information
xyzz committed Apr 23, 2021
2 parents cc5961f + 3968207 commit 41f26e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions quantum/via.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion quantum/vial.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 41f26e6

Please sign in to comment.