fix more yellow

Change-Id: I74bad58707d05ea167169d4315c05eb0cd1c8b7b
This commit is contained in:
Solomon Peachy 2020-10-13 17:09:13 -04:00
parent b94db707fb
commit 09785a8499
6 changed files with 16 additions and 6 deletions

View file

@ -194,13 +194,15 @@ int button_read_device(void)
int data = 0;
static bool hold_button = false;
#ifndef BOOTLOADER
bool hold_button_old;
/* read hold buttons status */
hold_button_old = hold_button;
#endif
hold_button = button_hold();
#ifndef BOOTLOADER
/* Only main hold affects backlight */
if (hold_button != hold_button_old)