From 95992f8a2e8dec3a02de99a928a7009aaa50e241 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=AD=A6=E6=B5=B7?= Date: Sat, 14 Dec 2024 06:48:09 +0000 Subject: [PATCH] update adapter/platform/gpio/gpio_asr.c. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 许学海 --- adapter/platform/gpio/gpio_asr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adapter/platform/gpio/gpio_asr.c b/adapter/platform/gpio/gpio_asr.c index 892563feb..725809013 100644 --- a/adapter/platform/gpio/gpio_asr.c +++ b/adapter/platform/gpio/gpio_asr.c @@ -79,7 +79,7 @@ static void OemGpioIrqHdl(uint16_t *arg) { asr_gpio_dev_t *dev = NULL; uint16_t gpio = (uint16_t)arg; - if (gpio > ASR_GPIO_TOTAL_NUM) { + if (gpio >= ASR_GPIO_TOTAL_NUM) { HDF_LOGE("invalid gpio"); return; } -- Gitee