diff options
author | Keith Packard <keithp@keithp.com> | 2013-12-20 23:00:43 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-12-20 23:00:43 -0800 |
commit | 14790172e02d4e1624c35797f87ffd94345d54ff (patch) | |
tree | 6345e1fc7607cd44e82c5f3932276fda96bc16ea /src/lpc | |
parent | 48f996a9d65631238b4de446530f31f83acb99f5 (diff) |
altos: lpc exti setup was incorrectly testing mode
Check for NOCONFIGURE bit was missing parens
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lpc')
-rw-r--r-- | src/lpc/ao_exti_lpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpc/ao_exti_lpc.c b/src/lpc/ao_exti_lpc.c index 588cf58c..941aa965 100644 --- a/src/lpc/ao_exti_lpc.c +++ b/src/lpc/ao_exti_lpc.c @@ -91,7 +91,7 @@ ao_exti_setup (uint8_t port, uint8_t pin, uint8_t mode, void (*callback)(void)) if (pint == LPC_NUM_PINT) ao_panic(AO_PANIC_EXTI); - if (!mode & AO_EXTI_PIN_NOCONFIGURE) + if (!(mode & AO_EXTI_PIN_NOCONFIGURE)) ao_enable_input(port, pin, mode); ao_arch_block_interrupts(); |