From d193d7bba0eea1b527e8aba0edd26bed9896e3b6 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 20 Nov 2018 17:03:30 -0800 Subject: [PATCH] Reset our "last state" when updating Kaleidoscope, rather than when reading. (This eliminates a "chatter" causing bug Signed-off-by: Jesse Vincent --- src/kaleidoscope/hardware/ATMegaKeyboard.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/kaleidoscope/hardware/ATMegaKeyboard.cpp b/src/kaleidoscope/hardware/ATMegaKeyboard.cpp index 807f3682..5fead89c 100644 --- a/src/kaleidoscope/hardware/ATMegaKeyboard.cpp +++ b/src/kaleidoscope/hardware/ATMegaKeyboard.cpp @@ -63,8 +63,6 @@ void __attribute__((optimize(3))) ATMegaKeyboard::readMatrix(void) { for (uint8_t current_row = 0; current_row < KeyboardHardware.matrix_rows; current_row++) { uint16_t mask, cols; - KeyboardHardware.previousKeyState_[current_row] = KeyboardHardware.keyState_[current_row]; - mask = KeyboardHardware.debounceMaskForRow(current_row); OUTPUT_TOGGLE(KeyboardHardware.matrix_row_pins[current_row]);