]> git.zerfleddert.de Git - ms2-fixes/commitdiff
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 5c440d8bcbfd5ca426bf3c00931c960e7cf200c1..38fe8790b0c7b4622e3409a1df51e010e6a496d1 100644 (file)
Binary files a/MS2Debounce/assets/debounce.ko and b/MS2Debounce/assets/debounce.ko differ
index 0f45a4b09752dd2b832e2cf337856896ebf366d8..08dc7f4bc10b27e4b72a9957d780ff39fdb10bd4 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