From: Fred Sundvik Date: Fri, 31 Mar 2017 19:51:00 +0000 (+0300) Subject: Only re-send matrix every 5ms X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=503565d1742ed458c992192a05f6ffe1db053135;p=qmk_firmware.git Only re-send matrix every 5ms The previous 1ms value was too often, and wouldn't always leave time for the visualizer --- diff --git a/quantum/serial_link/system/serial_link.c b/quantum/serial_link/system/serial_link.c index 75c7e77a7..b3bee62a1 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();