From b39d4d7516e9bcf493fc06c20e0955c219bff885 Mon Sep 17 00:00:00 2001 From: Mike Baker Date: Fri, 1 Dec 2006 22:31:11 +0000 Subject: [PATCH] Ignore false button events generated by switch gpio use SVN-Revision: 5687 --- openwrt/target/linux/package/diag/src/diag.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index e2e772c490..0b445f8c22 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -584,6 +584,8 @@ static void button_handler(int irq, void *dev_id, struct pt_regs *regs) changed = platform.button_polarity ^ in; platform.button_polarity = in; + changed &= ~sb_gpioouten(sbh, 0, 0); + for (b = platform.buttons; b->name; b++) { struct event_t *event; -- 2.30.2