[main] fix: cast wrongly converted integer back into the pointer to remove warning

This commit is contained in:
ІО-23 Шмуляр Олег 2025-04-14 20:20:57 +03:00
parent 5bbbc9fe44
commit 7940c95b23
1 changed files with 1 additions and 1 deletions

View File

@ -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;