summaryrefslogtreecommitdiff
path: root/keyboards/infinity60/matrix.c
diff options
context:
space:
mode:
authorxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
committerxyverz <xyverz@gmail.com>2016-11-16 22:36:36 -0800
commitb493f6a4ed14e74c268ae3d7a07577591fe71cc7 (patch)
tree0da986aa45733b08c6b8c379658abd5e0a1fb8a7 /keyboards/infinity60/matrix.c
parent8dd422ffe1a84416dd4a8d38878979f5b7bbd51b (diff)
parentc38b3e3be93a8b4f520212117b6498a288d67751 (diff)
downloadqmk_firmware-b493f6a4ed14e74c268ae3d7a07577591fe71cc7.tar.gz
qmk_firmware-b493f6a4ed14e74c268ae3d7a07577591fe71cc7.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/infinity60/matrix.c')
-rw-r--r--keyboards/infinity60/matrix.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboards/infinity60/matrix.c b/keyboards/infinity60/matrix.c
index 62c165aa53..d2f1852885 100644
--- a/keyboards/infinity60/matrix.c
+++ b/keyboards/infinity60/matrix.c
@@ -96,7 +96,12 @@ uint8_t matrix_scan(void)
}
#endif
- wait_us(1); // need wait to settle pin state
+ // need wait to settle pin state
+ // if you wait too short, or have a too high update rate
+ // the keyboard might freeze, or there might not be enough
+ // processing power to update the LCD screen properly.
+ // 20us, or two ticks at 100000Hz seems to be OK
+ wait_us(20);
// read col data
data = (palReadPort(GPIOD)>>1);