Skip to content
Snippets Groups Projects
Verified Commit 162fe8f8 authored by fleur's avatar fleur Committed by rahix
Browse files

fix(pb): Fix off-by-one error in assertion

parent 7d849b41
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ void PB_IntClear(unsigned int pb)
int PB_Get(unsigned int pb)
{
static const uint8_t expander_pins[] = { 5, 0x0, 3, 6 };
MXC_ASSERT(pb < 4);
MXC_ASSERT(pb <= 4);
switch (pb) {
case 1:
case 3:
......
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