Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions radio/src/targets/pa01/key_driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ void pollKeys()
keyState |= 1<<ENT;

nonReadCount++;
//If no interrupt occurs, it means no key is pressed, so no scanning is needed this time,exit.
return;
}
nonReadCount = 0;
#endif
Expand Down Expand Up @@ -114,6 +116,7 @@ void pollKeys()
// If ui8ReadInProgress is above 1, then there was concurrent task calling it, exit
if (syncelem.ui8ReadInProgress > 1) {
keyState = syncelem.oldResult;
return;
}

// If we land here, we have exclusive access to Matrix
Expand Down