Skip to content
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

Fix UK keyboard compile warning #680

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ssilverman
Copy link
Contributor

Because this keyboard defines KEYCODE_EXTRA00, usb_keyboard.c's unicode_to_keycode() can return a 16-bit quantity.

See:
https://forum.pjrc.com/threads/71926-Button-Press-detector?p=319143&viewfull=1#post319143

@ssilverman
Copy link
Contributor Author

Note: I didn't modify the Teensy 2 code. I'm hesitant because I'm not certain how much change should be introduced there.

@ssilverman
Copy link
Contributor Author

ssilverman commented Jan 19, 2023

I changed my mind and changed the Teensy 2 code. Let me know if this is a desirable thing.

Because this keyboard defines KEYCODE_EXTRA00, usb_keyboard.c's
unicode_to_keycode() can return a 16-bit quantity.

See:
https://forum.pjrc.com/threads/71926-Button-Press-detector?p=319143&viewfull=1#post319143
@ssilverman
Copy link
Contributor Author

ssilverman commented Jan 19, 2023

I just force pushed changing the KEYCODE_MASK to 0x07ff. Still figuring out if that's correct.

@ssilverman ssilverman marked this pull request as draft January 19, 2023 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant