fix build with -flto

This commit is contained in:
hathach 2023-08-01 17:26:56 +07:00
parent f04e5108b2
commit 47ae883ba0
No known key found for this signature in database
GPG Key ID: F5D50C6D51D17CBA
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ void board_led_write(bool state) {
}
uint32_t board_button_read(void) {
bsp_io_level_t lvl;
bsp_io_level_t lvl = !BUTTON_STATE_ACTIVE;
R_IOPORT_PinRead(&port_ctrl, SW1, &lvl);
return lvl == BUTTON_STATE_ACTIVE;
}