Only re-send matrix every 5ms

The previous 1ms value was too often, and wouldn't always leave
time for the visualizer
master
Fred Sundvik 2017-03-31 22:51:00 +03:00
parent 6039a4f6ed
commit 503565d174
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ void serial_link_update(void) {
systime_t current_time = chVTGetSystemTimeX(); systime_t current_time = chVTGetSystemTimeX();
systime_t delta = current_time - last_update; systime_t delta = current_time - last_update;
if (changed || delta > US2ST(1000)) { if (changed || delta > US2ST(5000)) {
last_update = current_time; last_update = current_time;
last_matrix = matrix; last_matrix = matrix;
matrix_object_t* m = begin_write_keyboard_matrix(); matrix_object_t* m = begin_write_keyboard_matrix();