Skip to content
Snippets Groups Projects
Commit 3ccf1af9 authored by schneider's avatar schneider
Browse files

doc(buttons): Add a comment about not using PB_Get

parent a7083229
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ static void epic_buttons_update(uint8_t mask)
button_states[3] = MAX77650_getDebounceStatusnEN0();
}
if (portexpander_detected() && (mask % 8)) {
/* Not using PB_Get() here as that performs one I2C transcation per button */
uint8_t button_status = portexpander_get();
for (int i = 0; i < 3; i++) {
button_states[i] = (button_status >> ButtonPin[i]) & 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment