From abb9f924db8f9884c7037c3c75e950adf2c8d165 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Tue, 26 Jan 2016 23:34:38 -0800 Subject: [PATCH] slightly refactor matrix scanning loop --- KeyboardioFirmware.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/KeyboardioFirmware.ino b/KeyboardioFirmware.ino index e3fbab69..ff3ece19 100644 --- a/KeyboardioFirmware.ino +++ b/KeyboardioFirmware.ino @@ -18,11 +18,10 @@ void scan_matrix() { for (byte col = 0; col < LEFT_COLS; col++) { implementation_scan_left_col(row,col,&matrixState[row][col]); - implementation_scan_right_col(row,col,&matrixState[row][(COLS - 1) - col]); - handle_key_event(row, col); if (implementation_right_hand_connected()) { + implementation_scan_right_col(row,col,&matrixState[row][(COLS - 1) - col]); handle_key_event(row, (COLS - 1) - col); } }