From f5b7844dfc21128f44ee708dc7c755625d698cdc Mon Sep 17 00:00:00 2001 From: DingDing Date: Thu, 9 Jan 2025 15:31:44 +0800 Subject: [PATCH] Update drv_gpio.c --- bsp/renesas/libraries/HAL_Drivers/drv_gpio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bsp/renesas/libraries/HAL_Drivers/drv_gpio.c b/bsp/renesas/libraries/HAL_Drivers/drv_gpio.c index 4f674592a59..6d340cf8142 100644 --- a/bsp/renesas/libraries/HAL_Drivers/drv_gpio.c +++ b/bsp/renesas/libraries/HAL_Drivers/drv_gpio.c @@ -303,14 +303,14 @@ static rt_err_t ra_pin_dettach_irq(struct rt_device *device, rt_base_t pin) } // USE "PXX_X" or "pXX_X" format, the character 'P'/'p' and '_' are required. -static rt_base_t ra_pin_get(const char *name) +static rt_base_t ra_pin_get(const char *name) { if ((rt_strlen(name) == 5) && ((name[0] == 'P') || (name[0] == 'p')) && (name[3] == '_') && ('0' <= (int) name[1] && (int) name[1] <= '1') && ('0' <= (int) name[2] && (int) name[2] <= '9') && - ('0' <= (int) name[4] && (int) name[4] <= '7')) + ('0' <= (int) name[4] && (int) name[4] <= '7')) { return (((int) name[1] - '0') * 10 + ((int) name[2] - '0')) * 0x100 + ((int) name[4] - '0'); }