Skip to content

Commit

Permalink
Reintroduced matrix tester, but it's disabled by default and requires…
Browse files Browse the repository at this point in the history
… unlock
  • Loading branch information
Pieterv24 committed Apr 22, 2021
1 parent cc5961f commit 3968207
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 3968207

Please sign in to comment.