From 26bebd77abe94abd415ff46d67b52153dd19f85b Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Tue, 13 Oct 2020 19:32:07 -0400 Subject: [PATCH] Fix more red. Change-Id: Id1a45b420f8eb70a25010b058822b78f80db33d8 --- firmware/drivers/isp1583.c | 2 +- firmware/target/arm/rk27xx/hm60x/button-hm60x.c | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/firmware/drivers/isp1583.c b/firmware/drivers/isp1583.c index f6168d9f28..c028d2fa01 100644 --- a/firmware/drivers/isp1583.c +++ b/firmware/drivers/isp1583.c @@ -365,7 +365,7 @@ static void usb_handle_data_int(int ep, int dir) endpoints[ep].in_ack = 1; } logf("usb_handle_data_int(%d, %d) finished", ep, dir); - void(len); + (void)len; } bool usb_drv_powered(void) diff --git a/firmware/target/arm/rk27xx/hm60x/button-hm60x.c b/firmware/target/arm/rk27xx/hm60x/button-hm60x.c index dfd209ceed..fd5b6d6d20 100644 --- a/firmware/target/arm/rk27xx/hm60x/button-hm60x.c +++ b/firmware/target/arm/rk27xx/hm60x/button-hm60x.c @@ -43,11 +43,13 @@ int button_read_device(void) { int adc_val = adc_read(ADC_BUTTONS); int gpio_btn = GPIO_PCDR & BUTTON_POWER; static bool hold_button = false; +#ifndef BOOTLOADER bool hold_button_old; - + hold_button_old = hold_button; +#endif hold_button = button_hold(); - + #ifndef BOOTLOADER if (hold_button != hold_button_old) { backlight_hold_changed(hold_button);