From 5aa7356c67552b92e7d98b4da590d0eb2ce675b0 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Mon, 16 Mar 2015 21:55:25 -0700 Subject: [PATCH] move a matrix reset into the keyscanning routine --- ArduinoKeyboard.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduinoKeyboard.ino b/ArduinoKeyboard.ino index 8ce113e8..ab4ed726 100644 --- a/ArduinoKeyboard.ino +++ b/ArduinoKeyboard.ino @@ -140,6 +140,8 @@ void scan_matrix() release_keys_not_being_pressed(); TS("Sending key report"); Keyboard.sendCurrentReport(); + TS("clearing internal key report") + reset_key_report(); } // Command mode @@ -284,7 +286,6 @@ void loop() TS("about to scan the matrix") active_keymap = primary_keymap; scan_matrix(); - reset_key_report(); TS("updating LEDs"); update_leds(); }