From 7940c95b2314f2c3f7114960b5b62c609c5ebb45 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 14 Apr 2025 20:20:57 +0300 Subject: [PATCH] [main] fix: cast wrongly converted integer back into the pointer to remove warning --- Core/Src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;