diff --git a/Core/Src/main.c b/Core/Src/main.c index 06dae20..a23146b 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -226,7 +226,7 @@ void button_init_and_test(void) for (size_t i = 0; i < 5; i++) { pressed_elements >>= 1; - size_t input = !HAL_GPIO_ReadPin(sw_button_locations[i][0], sw_button_locations[i][1]); + size_t input = !HAL_GPIO_ReadPin((GPIO_TypeDef *) sw_button_locations[i][0], sw_button_locations[i][1]); if (input) { pressed_elements |= 0x20;