From: Keith Packard Date: Wed, 29 Jun 2016 19:55:30 +0000 (-0700) Subject: altos/stm: clean up ao_exti_enable X-Git-Tag: 1.6.5~1^2~7 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=c6c250711355ae8060e956e786702be250ef4527 altos/stm: clean up ao_exti_enable Was computing (1 << pin) twice for no good reason. Signed-off-by: Keith Packard --- diff --git a/src/stm/ao_exti_stm.c b/src/stm/ao_exti_stm.c index 35958cf8..925f9a22 100644 --- a/src/stm/ao_exti_stm.c +++ b/src/stm/ao_exti_stm.c @@ -144,7 +144,7 @@ ao_exti_enable(struct stm_gpio *gpio, uint8_t pin) { uint32_t mask = (1 << pin); (void) gpio; stm_exti.pr = mask; - stm_exti.imr |= (1 << pin); + stm_exti.imr |= mask; } void