Skip to content
Snippets Groups Projects
Commit a8f4d358 authored by rahix's avatar rahix
Browse files

fix(buttons): Fix an I2C transaction without bus lock


The call to MAX77650_getDebounceStatusnEN0() in epic_buttons_read()
performs transactions on the I2C bus but is not guarded by locking the
I2C hwlock.  This leads to strange issues like USB mode deadlocking when
writing large files.

Widen the hwlock I2C section to encompass the MAX77650_getDebounceStatusnEN0()
call as well.  This fixes #189.

Signed-off-by: default avatarRahix <rahix@rahix.de>
parent 20cba973
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment