keyboardio / Model01-Firmware

The "standard" Keyboardio Model 01 Firmware sketch.
GNU General Public License v3.0
172 stars 302 forks source link

Fix anyKeyMacro for new hid API #68

Closed hustvedt closed 6 years ago

hustvedt commented 6 years ago

The new HID api seems to have added a toggledOn field, so here is a version of the anyKeyMacro that works with that api.

Without this fix, the any key repeats on every loop, which is way too fast.

obra commented 6 years ago

Thanks so much for the contribution!

@algernon - Could you take a quick look at this and give me a thumbs up/down?

algernon commented 6 years ago

:+1:

The code makes sense, and does, indeed fix the problem.