diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-02-10 18:08:49 -0600 |
commit | 6db1f6f71c8867cbae3a2c5597b01f321064a370 (patch) | |
tree | bd0b760c6467a0b528b7b29480f944c99c186693 /nuttx/configs/sam4l-xplained | |
parent | 07d355e8f77afbc04ea94089071b0154e747acec (diff) | |
download | px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.gz px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.tar.bz2 px4-nuttx-6db1f6f71c8867cbae3a2c5597b01f321064a370.zip |
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
Diffstat (limited to 'nuttx/configs/sam4l-xplained')
-rw-r--r-- | nuttx/configs/sam4l-xplained/src/sam_buttons.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nuttx/configs/sam4l-xplained/src/sam_buttons.c b/nuttx/configs/sam4l-xplained/src/sam_buttons.c index e06f476fc..2d6175652 100644 --- a/nuttx/configs/sam4l-xplained/src/sam_buttons.c +++ b/nuttx/configs/sam4l-xplained/src/sam_buttons.c @@ -147,6 +147,7 @@ xcpt_t board_button_irq(int id, xcpt_t irqhandler) sam_gpioirq(IRQ_SW0); (void)irq_attach(IRQ_SW0, irqhandler); sam_gpioirqenable(IRQ_SW0); + irqrestore(flags); } /* Return the old button handler (so that it can be restored) */ |