summaryrefslogtreecommitdiff
path: root/libcpu/ti-dsp
diff options
context:
space:
mode:
authorcodlearner <[email protected]>2023-04-12 10:58:30 +0800
committersupperthomas <[email protected]>2023-04-13 10:00:23 +0800
commit590e603997de5c3a96bfd5311fc5c04fac7bc90d (patch)
tree54e4ed8f121172fa9292e487711ff1029ae665a8 /libcpu/ti-dsp
parent5bbcb5dc799cddc732c1cdc966d8d206e9120986 (diff)
逻辑错误
Diffstat (limited to 'libcpu/ti-dsp')
-rw-r--r--libcpu/ti-dsp/c6x/interrupt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpu/ti-dsp/c6x/interrupt.c b/libcpu/ti-dsp/c6x/interrupt.c
index 6e48cb8efa..e0f938a4c6 100644
--- a/libcpu/ti-dsp/c6x/interrupt.c
+++ b/libcpu/ti-dsp/c6x/interrupt.c
@@ -78,7 +78,7 @@ rt_isr_handler_t rt_hw_interrupt_install(int vector, rt_isr_handler_t handler,
{
rt_isr_handler_t old_handler = RT_NULL;
- if (vector < MAX_HANDLERS || vector >= 0)
+ if (vector < MAX_HANDLERS && vector >= 0)
{
old_handler = isr_table[vector].handler;