Skip to content

Commit c70c592

Browse files
committed
FIX: added missing LcdKeypad::readButtons() return value
Signed-off-by: Dieter Niklaus <dieter.niklaus@gmx.net>
1 parent 9bda430 commit c70c592

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

LcdKeypad/LcdKeypad.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,12 @@ void LcdKeypad::setMCPType(MCPType mcptype)
485485
}
486486
}
487487

488-
//#ifdef MCP23017
489488
uint8_t LcdKeypad::readButtons()
490489
{
490+
uint8_t buttons = 0;
491491
if (0 != m_liquidTwi2)
492492
{
493-
m_liquidTwi2->readButtons();
493+
buttons = m_liquidTwi2->readButtons();
494494
}
495+
return buttons;
495496
}

0 commit comments

Comments
 (0)