Skip to content

Infinity60/chibios drop keys #268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tmk opened this issue Nov 13, 2015 · 1 comment
Closed

Infinity60/chibios drop keys #268

tmk opened this issue Nov 13, 2015 · 1 comment
Labels

Comments

@tmk
Copy link
Owner

tmk commented Nov 13, 2015

It fails to register keys when fast typing or rubing keys test.

Rubing keys test:
WIth one finger tip rub keys in a row as fast as possible, like 1234567890-=` or qwertyuiop[].

SOLUTION:
Chibios protocol has 5ms delay in main loop, it causes this. Probably it can be removed safely.

diff --git a/tmk_core/protocol/chibios/main.c b/tmk_core/protocol/chibios/main.c
index 9607f1a..b62cfa9 100644
--- a/tmk_core/protocol/chibios/main.c
+++ b/tmk_core/protocol/chibios/main.c
@@ -135,6 +135,5 @@ int main(void) {
     }

     keyboard_task();
-    chThdSleepMilliseconds(5);
   }
 }
@flabbergast
Copy link
Contributor

Yep, this is a problem. I originally put it there sort-of at random. It may be useful to put some delay here, just because the ARM hardware generally runs at least 3 times faster than AVR, so the debouncing numbers won't "match".

Committed in my fork: flabbergast@41f5be3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants