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
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment