HCoop
/
jackhill
/
qmk
/
firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d3309
)
xwhatsit keyboards: improve logic to detect > 16 physical cols
author
Purdea Andrei
<andrei@purdea.ro>
Sat, 25 Jul 2020 05:07:05 +0000
(08:07 +0300)
committer
Purdea Andrei
<andrei@purdea.ro>
Sat, 25 Jul 2020 05:07:05 +0000
(08:07 +0300)
keyboards/xwhatsit/matrix.c
patch
|
blob
|
blame
|
history
diff --git
a/keyboards/xwhatsit/matrix.c
b/keyboards/xwhatsit/matrix.c
index
7703ac8
..
fa67367
100644
(file)
--- a/
keyboards/xwhatsit/matrix.c
+++ b/
keyboards/xwhatsit/matrix.c
@@
-319,7
+319,7
@@
void dac_write_threshold(uint16_t value)
#endif
-#define SHIFT_BITS ((
MATRIX_COLS >
16) ? 24 : 16)
+#define SHIFT_BITS ((
CAPSENSE_KEYMAP_COL_TO_PHYSICAL_COL(MATRIX_COLS - 1) >=
16) ? 24 : 16)
void shift_select_nothing(void)
{