From 00069931c181a672c7f709d9a76892e575a964f7 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 16 Sep 2020 00:03:44 +0300 Subject: debounce for gpiod AioReader --- kvmd/apps/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kvmd/apps/__init__.py') diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index ac140466..ccede372 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -227,7 +227,9 @@ def _patch_dynamic( # pylint: disable=too-many-locals "min_delay": Option(0.1, type=valid_float_f01), "max_delay": Option(0.1, type=valid_float_f01), }, - } if mode == UserGpioModes.OUTPUT else {}) + } if mode == UserGpioModes.OUTPUT else { # input + "debounce": Option(0.1, type=valid_float_f0), + }) } rebuild = True -- cgit v1.2.3