From cb54da68612e2bc45ac83d0e3f0b996709fddf75 Mon Sep 17 00:00:00 2001 From: atechofficials Date: Sun, 14 Jul 2024 03:13:22 +0530 Subject: [PATCH] Changed readPin function to gpio_read_pin function in rev1.c file because of core change: Renaming Arduino-style GPIO pin functions #23085, #23093 --- keyboards/protokeeb/rev1/rev1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboards/protokeeb/rev1/rev1.c b/keyboards/protokeeb/rev1/rev1.c index 324098da8100..872ed8a9fcb9 100644 --- a/keyboards/protokeeb/rev1/rev1.c +++ b/keyboards/protokeeb/rev1/rev1.c @@ -20,7 +20,7 @@ extern matrix_row_t matrix[]; // Declare the matrix array void matrix_scan_kb(void) { // Read the encoder button state and update the matrix - if (readPin(ENCODER_BUTTON_PIN) == 0) { + if (gpio_read_pin(ENCODER_BUTTON_PIN) == 0) { matrix[ENCODER_BUTTON_ROW] |= (1 << ENCODER_BUTTON_COL); } else { matrix[ENCODER_BUTTON_ROW] &= ~(1 << ENCODER_BUTTON_COL);