From c1cd3b3a4269b4c0d5e1da2718f0112814835100 Mon Sep 17 00:00:00 2001 From: patacongo Date: Fri, 30 Oct 2009 13:51:07 +0000 Subject: [PATCH] BUG: mixing else causes bad IRQ settings git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2194 42af7a65-404d-4744-a932-0658087f49c3 --- arch/arm/src/stm32/stm32_irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/stm32/stm32_irq.c b/arch/arm/src/stm32/stm32_irq.c index a7bb4c9e82..7ba4480791 100644 --- a/arch/arm/src/stm32/stm32_irq.c +++ b/arch/arm/src/stm32/stm32_irq.c @@ -224,7 +224,7 @@ static int stm32_irqinfo(int irq, uint32 *regaddr, uint32 *bit) *regaddr = NVIC_IRQ0_31_ENABLE; *bit = 1 << (irq - STM32_IRQ_INTERRUPTS); } - if (irq < STM32_IRQ_INTERRUPTS + 64) + else if (irq < STM32_IRQ_INTERRUPTS + 64) { *regaddr = NVIC_IRQ32_63_ENABLE; *bit = 1 << (irq - STM32_IRQ_INTERRUPTS - 32);