mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 23:38:06 +00:00
fix build with -flto
This commit is contained in:
parent
f04e5108b2
commit
47ae883ba0
@ -136,7 +136,7 @@ void board_led_write(bool state) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint32_t board_button_read(void) {
|
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);
|
R_IOPORT_PinRead(&port_ctrl, SW1, &lvl);
|
||||||
return lvl == BUTTON_STATE_ACTIVE;
|
return lvl == BUTTON_STATE_ACTIVE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user