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:
Cipulot 2025-11-11 21:21:50 +09:00 committed by GitHub
parent e7ad19bb95
commit ed343ddad4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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