HD300: Fix crash in bootloader introduced by 36281c4
Uninitialized struct scroll which is used to pass state between scrollstrip ISR and button_read_device() can bomb out whole button subsytem. Change-Id: I3b415c22cfee4181b2132cddaeff68797c7cc0ea
This commit is contained in:
parent
5ed6de3889
commit
b35f82c91f
1 changed files with 4 additions and 1 deletions
|
@ -38,7 +38,10 @@ static volatile struct scroll_state_t {
|
|||
signed char dir;
|
||||
long timeout;
|
||||
bool rel;
|
||||
} scroll;
|
||||
} scroll = { .dir = BUTTON_UP,
|
||||
.timeout = SLIDER_REL_TIMEOUT,
|
||||
.rel = false,
|
||||
};
|
||||
|
||||
static inline void disable_scrollstrip_interrupts(void)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue