VIA Keylog Change (#25504)
* WIP * Update via.c temptive fix in formatting for lint errors. * Update via.c let's try this one, thanks mobile GitHub app to not showing spaces right. * Update quantum/via.c Co-authored-by: Joel Challis <git@zvecr.com> * Update quantum/via.c Co-authored-by: Joel Challis <git@zvecr.com> * Merge branch 'qmk:master' into via_keylog_change
This commit is contained in:
parent
e7ad19bb95
commit
ed343ddad4
1 changed files with 10 additions and 1 deletions
|
|
@ -37,6 +37,10 @@
|
|||
#include "version.h" // for QMK_BUILDDATE used in EEPROM magic
|
||||
#include "nvm_via.h"
|
||||
|
||||
#if defined(SECURE_ENABLE)
|
||||
# include "secure.h"
|
||||
#endif
|
||||
|
||||
#if defined(AUDIO_ENABLE)
|
||||
# include "audio.h"
|
||||
#endif
|
||||
|
|
@ -322,8 +326,13 @@ void raw_hid_receive(uint8_t *data, uint8_t length) {
|
|||
uint8_t rows = 28 / ((MATRIX_COLS + 7) / 8);
|
||||
uint8_t i = 2;
|
||||
for (uint8_t row = 0; row < rows && row + offset < MATRIX_ROWS; row++) {
|
||||
#ifdef VIA_INSECURE
|
||||
#if defined(VIA_INSECURE)
|
||||
matrix_row_t value = matrix_get_row(row + offset);
|
||||
#elif defined(SECURE_ENABLE)
|
||||
matrix_row_t value = 0;
|
||||
if (secure_is_unlocked()) {
|
||||
value = matrix_get_row(row + offset);
|
||||
}
|
||||
#else
|
||||
matrix_row_t value = 0;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue