From 1fbecb4c22eb7d477a7610574b59b78a01e66df8 Mon Sep 17 00:00:00 2001 From: Federico Amedeo Izzo Date: Mon, 7 Jun 2021 20:10:02 +0200 Subject: [PATCH] Increase keyboard thread polling rate to 40Hz to improve knob reactivity --- openrtx/src/threads.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openrtx/src/threads.c b/openrtx/src/threads.c index cb2c7075..d8c126fc 100644 --- a/openrtx/src/threads.c +++ b/openrtx/src/threads.c @@ -204,8 +204,8 @@ void *kbd_task(void *arg) // Save current keyboard state as previous prev_keys = keys; - // Read keyboard state at 20Hz - sleepFor(0u, 50u); + // Read keyboard state at 40Hz + sleepFor(0u, 25u); } }