]> git.zerfleddert.de Git - ms2-fixes/commitdiff
more consistency
authorMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 14:04:43 +0000 (16:04 +0200)
committerMichael Gernoth <michael@gernoth.net>
Sun, 21 Aug 2011 14:04:43 +0000 (16:04 +0200)
MS2Debounce/assets/debounce.ko
debounce.c

index 38fe8790b0c7b4622e3409a1df51e010e6a496d1..54912b8a56fcb7465c1b749dae040e5609faa02e 100644 (file)
Binary files a/MS2Debounce/assets/debounce.ko and b/MS2Debounce/assets/debounce.ko differ
index 08dc7f4bc10b27e4b72a9957d780ff39fdb10bd4..e6040167c3de8f2ccbbd9c1cb57405ca49aba6da 100644 (file)
@@ -352,8 +352,6 @@ 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);
@@ -379,6 +377,9 @@ static ssize_t store_hw_debounce_time(struct device *dev, struct device_attribut
        if ((time < 0) || (time > 0xff))
                return count;
 
+       if (!hw_debounce)
+               return count;
+
        hw_debounce_set(-1, time);
        hw_debounce_time = time;
 
Impressum, Datenschutz