From 09785a8499b601abc9eac7640060c12eba962b56 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 13 Oct 2020 17:09:13 -0400 Subject: fix more yellow Change-Id: I74bad58707d05ea167169d4315c05eb0cd1c8b7b --- firmware/target/arm/rk27xx/hm801/button-hm801.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'firmware/target/arm/rk27xx/hm801/button-hm801.c') diff --git a/firmware/target/arm/rk27xx/hm801/button-hm801.c b/firmware/target/arm/rk27xx/hm801/button-hm801.c index 0ac1b3b0aa..5f01a7bd14 100644 --- a/firmware/target/arm/rk27xx/hm801/button-hm801.c +++ b/firmware/target/arm/rk27xx/hm801/button-hm801.c @@ -137,9 +137,11 @@ static int button_read_device_v2(void) { int button_read_device(void) { static bool hold_button = false; +#ifndef BOOTLOADER bool hold_button_old; hold_button_old = hold_button; +#endif hold_button = button_hold(); #ifndef BOOTLOADER @@ -147,7 +149,7 @@ int button_read_device(void) { backlight_hold_changed(hold_button); } #endif - + if (hold_button) { return 0; } else if (kbd_type == KEYBOARD_V1) { -- cgit v1.2.3