Skip to content
Snippets Groups Projects
Commit 651961d6 authored by schneider's avatar schneider
Browse files

chore(buttons.c): Fix indentation.

parent 3ccf1af9
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ static void epic_buttons_update(uint8_t mask) ...@@ -14,7 +14,7 @@ static void epic_buttons_update(uint8_t mask)
button_states[3] = MAX77650_getDebounceStatusnEN0(); button_states[3] = MAX77650_getDebounceStatusnEN0();
} }
if (portexpander_detected() && (mask % 8)) { if (portexpander_detected() && (mask % 8)) {
/* Not using PB_Get() here as that performs one I2C transcation per button */ /* Not using PB_Get() here as that performs one I2C transcation per button */
uint8_t button_status = portexpander_get(); uint8_t button_status = portexpander_get();
for (int i = 0; i < 3; i++) { for (int i = 0; i < 3; i++) {
button_states[i] = (button_status >> ButtonPin[i]) & 1; 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