提交 dd2df385 编写于 作者: qiuyiuestc's avatar qiuyiuestc

fix rt_hw_interrupt_install bug

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1447 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 3ea3d509
...@@ -109,7 +109,7 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha ...@@ -109,7 +109,7 @@ void rt_hw_interrupt_install(int vector, rt_isr_handler_t new_handler, rt_isr_ha
{ {
if(vector < MAX_HANDLERS) 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; if (new_handler != RT_NULL) isr_table[vector] = new_handler;
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册