consistent state
authorMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 14:02:17 +0000 (16:02 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 14:02:17 +0000 (16:02 +0200)
MS2Debounce/assets/debounce.ko
debounce.c

index 5c440d8..38fe879 100644 (file)
Binary files a/MS2Debounce/assets/debounce.ko and b/MS2Debounce/assets/debounce.ko differ
index 0f45a4b..08dc7f4 100644 (file)
@@ -352,10 +352,14 @@ static ssize_t store_hw_debounce(struct device *dev, struct device_attribute *at
        if (enable) {
                hw_debounce_set(1, -1);
                hw_debounce = 1;
+               hw_debounce_set(-1, 0);
+               hw_debounce_time = 0;
        }
        else {
+               hw_debounce_set(-1, 0);
                hw_debounce_set(0, -1);
                hw_debounce = 0;
+               hw_debounce_time = 0;
        }
 
        return count;
Impressum, Datenschutz