Merge pull request #8 from Pieterv24/feature/secureMatrixTest
Reintroduced matrix tester, but it's disabled by default and requires…vial-develop/k680t
commit
41f26e635c
|
|
@ -256,8 +256,9 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
|
||||||
}
|
}
|
||||||
case id_switch_matrix_state: {
|
case id_switch_matrix_state: {
|
||||||
#ifdef VIAL_ENABLE
|
#ifdef VIAL_ENABLE
|
||||||
/* We don't need this wannabe keylogger */
|
/* Disable wannabe keylogger unless unlocked */
|
||||||
goto skip;
|
if (!vial_unlocked)
|
||||||
|
goto skip;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ((MATRIX_COLS / 8 + 1) * MATRIX_ROWS <= 28)
|
#if ((MATRIX_COLS / 8 + 1) * MATRIX_ROWS <= 28)
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <stdbool.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);
|
void vial_handle_cmd(uint8_t *data, uint8_t length);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue