Skip to content

Commit 47ae883

Browse files
committed
fix build with -flto
1 parent f04e510 commit 47ae883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hw/bsp/ra/family.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void board_led_write(bool state) {
136136
}
137137

138138
uint32_t board_button_read(void) {
139-
bsp_io_level_t lvl;
139+
bsp_io_level_t lvl = !BUTTON_STATE_ACTIVE;
140140
R_IOPORT_PinRead(&port_ctrl, SW1, &lvl);
141141
return lvl == BUTTON_STATE_ACTIVE;
142142
}

0 commit comments

Comments
 (0)