Skip to content
Snippets Groups Projects
Verified Commit 6ed72445 authored by schneider's avatar schneider Committed by rahix
Browse files

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

parent 0473f463
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
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