X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-fixes/blobdiff_plain/308fc1a5e33464760d1f87b6cb3bff96b0ad3e5f..c0cd650e5a84b1259a79f520a102297d418a92e0:/debounce.c diff --git a/debounce.c b/debounce.c index 0f45a4b..08dc7f4 100644 --- a/debounce.c +++ b/debounce.c @@ -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;