Ignore false button events generated by switch gpio use
authorMike Baker <mbm@openwrt.org>
Fri, 1 Dec 2006 22:31:11 +0000 (22:31 +0000)
committerMike Baker <mbm@openwrt.org>
Fri, 1 Dec 2006 22:31:11 +0000 (22:31 +0000)
SVN-Revision: 5687

openwrt/target/linux/package/diag/src/diag.c

index e2e772c490f7f56ff843dfbcf57d2671adcfc72c..0b445f8c22f92b1067229016479c8143cbf37b65 100644 (file)
@@ -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;