[main] fix: cast wrongly converted integer back into the pointer to remove warning
This commit is contained in:
parent
5bbbc9fe44
commit
7940c95b23
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue