summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-09-16 00:03:44 +0300
committerDevaev Maxim <[email protected]>2020-09-16 00:03:44 +0300
commit00069931c181a672c7f709d9a76892e575a964f7 (patch)
treed77779a938718e2d6e95269adeac5ab581af8ca3 /kvmd/apps/__init__.py
parent7cdf5976a8c0f0e020847413f4f8d64cb8e797f7 (diff)
debounce for gpiod AioReader
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py4
1 files changed, 3 insertions, 1 deletions
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