Fix more warnings.

Change-Id: Ib3a9fc622a46b1fc72e94dcbc6d29d2e430cd81b
This commit is contained in:
Solomon Peachy 2020-10-13 14:43:29 -04:00
parent 431caa4311
commit b94db707fb
11 changed files with 41 additions and 19 deletions

View file

@ -84,14 +84,17 @@ int button_read_device(void)
static bool remote_hold_button = false;
static int prev_data = 0xff;
static int last_valid = 0xff;
#ifndef BOOTLOADER
bool hold_button_old;
bool remote_hold_button_old;
#endif
/* normal buttons */
#ifndef BOOTLOADER
hold_button_old = hold_button;
#endif
hold_button = button_hold();
#ifndef BOOTLOADER
if (hold_button != hold_button_old)
backlight_hold_changed(hold_button);
@ -130,7 +133,9 @@ int button_read_device(void)
}
/* remote buttons */
#ifndef BOOTLOADER
remote_hold_button_old = remote_hold_button;
#endif
remote_hold_button = remote_button_hold_only();
#ifndef BOOTLOADER