forked from morganvenable/qmk_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request qmk#39 from svalboard/security_redo
recreated vial secure patch with some tweaks
- Loading branch information
Showing
3 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,23 @@ | ||
/* SPDX-License-Identifier: GPL-2.0-or-later */ | ||
|
||
#pragma once | ||
|
||
#define VIAL_KEYBOARD_UID {0x1B, 0x18, 0x7D, 0xF2, 0x21, 0xF6, 0x29, 0x48} | ||
|
||
// Vial security combos, depending on which unit this is... | ||
#ifdef INIT_EE_HANDS_RIGHT | ||
// right thumb lock | ||
#define VIAL_UNLOCK_COMBO_ROWS { 5, 5 } | ||
#define VIAL_UNLOCK_COMBO_COLS { 0, 1 } | ||
#elif INIT_EE_HANDS_LEFT | ||
// left thumb lock | ||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0 } | ||
#define VIAL_UNLOCK_COMBO_COLS { 0, 1 } | ||
#else | ||
// both thumb locks | ||
#define VIAL_UNLOCK_COMBO_ROWS { 0, 0, 5, 5 } | ||
#define VIAL_UNLOCK_COMBO_COLS { 2, 5, 2, 5 } | ||
#endif | ||
|
||
// Shorten the unlock timeout (needs mod in `quantum/vial.c`; without | ||
// it the override doesn't work) | ||
#define VIAL_UNLOCK_COUNTER_MAX 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
VIA_ENABLE = yes | ||
VIAL_ENABLE = yes | ||
VIAL_INSECURE = yes | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters