diff options
| author | hathach <[email protected]> | 2023-08-01 17:26:56 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-08-01 17:26:56 +0700 |
| commit | 47ae883ba0f02ef268e7e8427f14aaa4fb0c29ce (patch) | |
| tree | b299944ce18815f4763bd812345f1b05ab217f4b | |
| parent | f04e5108b2d9508681f0b7c7d6f926440e935fe2 (diff) | |
fix build with -flto
| -rw-r--r-- | hw/bsp/ra/family.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/bsp/ra/family.c b/hw/bsp/ra/family.c index e6213061d..73c64913d 100644 --- a/hw/bsp/ra/family.c +++ b/hw/bsp/ra/family.c @@ -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; } |
