diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 19:32:07 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-10-13 19:45:03 -0400 |
commit | 26bebd77abe94abd415ff46d67b52153dd19f85b (patch) | |
tree | 59922d7da82611fd2951051a0e7869a325d2bff1 | |
parent | e2adc6781fded00884ddb0161eb0f53b967f4785 (diff) | |
download | rockbox-26bebd77abe94abd415ff46d67b52153dd19f85b.tar.gz rockbox-26bebd77abe94abd415ff46d67b52153dd19f85b.zip |
Fix more red.
Change-Id: Id1a45b420f8eb70a25010b058822b78f80db33d8
-rw-r--r-- | firmware/drivers/isp1583.c | 2 | ||||
-rw-r--r-- | 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) | |||
365 | endpoints[ep].in_ack = 1; | 365 | endpoints[ep].in_ack = 1; |
366 | } | 366 | } |
367 | logf("usb_handle_data_int(%d, %d) finished", ep, dir); | 367 | logf("usb_handle_data_int(%d, %d) finished", ep, dir); |
368 | void(len); | 368 | (void)len; |
369 | } | 369 | } |
370 | 370 | ||
371 | bool usb_drv_powered(void) | 371 | 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) { | |||
43 | int adc_val = adc_read(ADC_BUTTONS); | 43 | int adc_val = adc_read(ADC_BUTTONS); |
44 | int gpio_btn = GPIO_PCDR & BUTTON_POWER; | 44 | int gpio_btn = GPIO_PCDR & BUTTON_POWER; |
45 | static bool hold_button = false; | 45 | static bool hold_button = false; |
46 | #ifndef BOOTLOADER | ||
46 | bool hold_button_old; | 47 | bool hold_button_old; |
47 | 48 | ||
48 | hold_button_old = hold_button; | 49 | hold_button_old = hold_button; |
50 | #endif | ||
49 | hold_button = button_hold(); | 51 | hold_button = button_hold(); |
50 | 52 | ||
51 | #ifndef BOOTLOADER | 53 | #ifndef BOOTLOADER |
52 | if (hold_button != hold_button_old) { | 54 | if (hold_button != hold_button_old) { |
53 | backlight_hold_changed(hold_button); | 55 | backlight_hold_changed(hold_button); |