Fix more red.

Change-Id: Id1a45b420f8eb70a25010b058822b78f80db33d8
This commit is contained in:
Solomon Peachy 2020-10-13 19:32:07 -04:00
parent e2adc6781f
commit 26bebd77ab
2 changed files with 5 additions and 3 deletions

View file

@ -365,7 +365,7 @@ static void usb_handle_data_int(int ep, int dir)
endpoints[ep].in_ack = 1; endpoints[ep].in_ack = 1;
} }
logf("usb_handle_data_int(%d, %d) finished", ep, dir); logf("usb_handle_data_int(%d, %d) finished", ep, dir);
void(len); (void)len;
} }
bool usb_drv_powered(void) bool usb_drv_powered(void)

View file

@ -43,11 +43,13 @@ int button_read_device(void) {
int adc_val = adc_read(ADC_BUTTONS); int adc_val = adc_read(ADC_BUTTONS);
int gpio_btn = GPIO_PCDR & BUTTON_POWER; int gpio_btn = GPIO_PCDR & BUTTON_POWER;
static bool hold_button = false; static bool hold_button = false;
#ifndef BOOTLOADER
bool hold_button_old; bool hold_button_old;
hold_button_old = hold_button; hold_button_old = hold_button;
#endif
hold_button = button_hold(); hold_button = button_hold();
#ifndef BOOTLOADER #ifndef BOOTLOADER
if (hold_button != hold_button_old) { if (hold_button != hold_button_old) {
backlight_hold_changed(hold_button); backlight_hold_changed(hold_button);