소스 검색

Merge pull request #1829 from nongxiaoming/master

[bsp][stm32f40x] Fix the bug of gpio driver.
Bernard Xiong 7 년 전
부모
커밋
1159377c86
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      bsp/stm32f40x/drivers/gpio.c

+ 1 - 1
bsp/stm32f40x/drivers/gpio.c

@@ -763,7 +763,7 @@ rt_err_t stm32_pin_irq_enable(struct rt_device *device, rt_base_t pin, rt_uint32
     }
     else if (enabled == PIN_IRQ_DISABLE)
     {
-        irq = get_pin_irq(index->pin);
+        irq = get_pin_irq(pin);
         if (irq == RT_NULL)
         {
             return -RT_ENOSYS;