Small typo fix : use the same notation as for the rest of the function
authorNathael Pajani <nathael.pajani@ed3l.fr>
Wed, 26 Oct 2016 23:47:19 +0000 (01:47 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:05 +0000 (17:03 +0100)
drivers/countertimers.c

index eb678d6..4c3eea2 100644 (file)
@@ -352,7 +352,7 @@ int countertimer_on(uint8_t timer_num, uint32_t clkrate, void (*callback)(uint32
        }
        timer->regs->prescale = prescale;
 
-       NVIC_EnableIRQ(countertimers[timer_num].irq);
+       NVIC_EnableIRQ( timer->irq );
        return 0;
 }