瀏覽代碼

fix rt_hw_interrupt_install bug

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1453 bbd45198-f89e-11dd-88c7-29a3b14d5316
luohui2320@gmail.com 14 年之前
父節點
當前提交
b936b13ed2
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libcpu/arm/at91sam926x/interrupt.c

+ 1 - 1
libcpu/arm/at91sam926x/interrupt.c

@@ -178,7 +178,7 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha
 {
 	if(vector < MAX_HANDLERS)
 	{
-		if (*old_handler != RT_NULL) *old_handler = isr_table[vector];
+		if (old_handler != RT_NULL) *old_handler = isr_table[vector];
 		if (new_handler != RT_NULL) isr_table[vector] = new_handler;
 	}
 }