diff options
author | Fred Sundvik <fsundvik@gmail.com> | 2017-03-31 22:51:00 +0300 |
---|---|---|
committer | Fred Sundvik <fsundvik@gmail.com> | 2017-04-09 18:34:59 +0300 |
commit | 503565d1742ed458c992192a05f6ffe1db053135 (patch) | |
tree | af072c127798d5ac65d49407bb9937fe30836179 /quantum/serial_link/system | |
parent | 6039a4f6edefbad7604a9533d445091cd646f240 (diff) |
Only re-send matrix every 5ms
The previous 1ms value was too often, and wouldn't always leave
time for the visualizer
Diffstat (limited to 'quantum/serial_link/system')
-rw-r--r-- | quantum/serial_link/system/serial_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/serial_link/system/serial_link.c b/quantum/serial_link/system/serial_link.c index 75c7e77a76..b3bee62a18 100644 --- a/quantum/serial_link/system/serial_link.c +++ b/quantum/serial_link/system/serial_link.c @@ -212,7 +212,7 @@ void serial_link_update(void) { systime_t current_time = chVTGetSystemTimeX(); systime_t delta = current_time - last_update; - if (changed || delta > US2ST(1000)) { + if (changed || delta > US2ST(5000)) { last_update = current_time; last_matrix = matrix; matrix_object_t* m = begin_write_keyboard_matrix(); |