diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 17:09:13 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 17:23:56 -0400 |
commit | 09785a8499b601abc9eac7640060c12eba962b56 (patch) | |
tree | 5ff5f1fa2e7f9927a9e45a7e1ca586bab93d7563 /firmware/target/coldfire/mpio/hd300/button-hd300.c | |
parent | b94db707fb7a8ace5c8821ea47d85ec48ca48e26 (diff) | |
download | rockbox-09785a8499b601abc9eac7640060c12eba962b56.tar.gz rockbox-09785a8499b601abc9eac7640060c12eba962b56.zip |
fix more yellow
Change-Id: I74bad58707d05ea167169d4315c05eb0cd1c8b7b
Diffstat (limited to 'firmware/target/coldfire/mpio/hd300/button-hd300.c')
-rw-r--r-- | firmware/target/coldfire/mpio/hd300/button-hd300.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/coldfire/mpio/hd300/button-hd300.c b/firmware/target/coldfire/mpio/hd300/button-hd300.c index e84b8d442b..2fdde6f641 100644 --- a/firmware/target/coldfire/mpio/hd300/button-hd300.c +++ b/firmware/target/coldfire/mpio/hd300/button-hd300.c @@ -194,13 +194,15 @@ int button_read_device(void) int data = 0; static bool hold_button = false; +#ifndef BOOTLOADER bool hold_button_old; /* read hold buttons status */ hold_button_old = hold_button; +#endif hold_button = button_hold(); - + #ifndef BOOTLOADER /* Only main hold affects backlight */ if (hold_button != hold_button_old) |