From 0936a73e86b2bbfaffa5f0bc9368b3fcd6eeeebc Mon Sep 17 00:00:00 2001 From: jiaziyang Date: Fri, 27 Aug 2021 14:49:59 +0800 Subject: [PATCH] fix the bug ingpio_core.c Signed-off-by: jiaziyang --- support/platform/src/gpio_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/platform/src/gpio_core.c b/support/platform/src/gpio_core.c index 8419ab765..f387a3475 100644 --- a/support/platform/src/gpio_core.c +++ b/support/platform/src/gpio_core.c @@ -174,7 +174,7 @@ struct GpioCntlr *GpioGetCntlr(uint16_t gpio) list = GpioCntlrListGet(); DLIST_FOR_EACH_ENTRY_SAFE(cntlr, tmp, list, struct GpioCntlr, list) { - if (gpio >= cntlr->start && gpio <= (cntlr->start + cntlr->count)) { + if (gpio >= cntlr->start && gpio < (cntlr->start + cntlr->count)) { GpioCntlrListPut(); return cntlr; } -- Gitee