diff --git a/epicardium/modules/buttons.c b/epicardium/modules/buttons.c index e2cb20d39f053a8123a4f730986403dd3dd74493..8364e725a960879c54fbae9b1905b17dd793a72e 100644 --- a/epicardium/modules/buttons.c +++ b/epicardium/modules/buttons.c @@ -15,6 +15,10 @@ uint8_t epic_buttons_read(uint8_t mask) { uint8_t ret = 0; if (portexpander_detected() && (mask & 0x3)) { + /* + * Not using PB_Get() here as that performs one I2C transcation + * per button. + */ uint8_t pin_status = ~portexpander_get(); for (uint8_t m = 1; m < 0x8; m <<= 1) {