diff --git a/keyboards/skyloong/gk104/q1/config.h b/keyboards/skyloong/gk104/q1/config.h index 2e9b0122e95..03fca19584b 100644 --- a/keyboards/skyloong/gk104/q1/config.h +++ b/keyboards/skyloong/gk104/q1/config.h @@ -9,8 +9,6 @@ # define ENCODER_MAP_KEY_DELAY 10 #endif -#define DIP_SWITCH_PINS {A4} - #ifdef RGB_MATRIX_ENABLE # define AW20216S_CS_PIN_1 B12 # define AW20216S_CS_PIN_2 B11 diff --git a/keyboards/skyloong/gk104/q1/info.json b/keyboards/skyloong/gk104/q1/info.json index fd54e1f9ddc..47a79b5a557 100644 --- a/keyboards/skyloong/gk104/q1/info.json +++ b/keyboards/skyloong/gk104/q1/info.json @@ -33,6 +33,9 @@ "on_state": 1, "caps_lock": "C14" }, + "dip_switch":{ + "pins":["A4"] + }, "matrix_pins": { "cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,null], "rows": ["A8", "A9", "A10", "A15", "B6", "B7","B9"] diff --git a/keyboards/skyloong/gk104/q1/matrix.c b/keyboards/skyloong/gk104/q1/matrix.c index 81141e7c446..5c8c5c6c170 100644 --- a/keyboards/skyloong/gk104/q1/matrix.c +++ b/keyboards/skyloong/gk104/q1/matrix.c @@ -147,8 +147,8 @@ bool matrix_scan_custom(matrix_row_t current_matrix[]) { matrix_read_rows_on_col(temp_matrix, current_col, row_shifter); } - bool changed = memcmp(temp_matrix, current_matrix, sizeof(temp_matrix)) != 0; - if (changed) memcpy(temp_matrix, current_matrix, sizeof(temp_matrix)); + bool changed = memcmp(raw_matrix, temp_matrix, sizeof(temp_matrix)) != 0; + if (changed) memcpy(raw_matrix, temp_matrix, sizeof(temp_matrix)); return changed; }