summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-06-01 20:23:40 +0300
committerMaxim Devaev <[email protected]>2023-06-01 20:23:40 +0300
commit816e518547372c3ff0eb816a659e9ffdb14c1fa0 (patch)
treef6f710070ccf1386f977cdfb2964f0c62b92138a /kvmd/apps
parentf5ff9c142a46c1fface9ffa3176e2f99a2ec7931 (diff)
gpio: short for for disabling the pulse
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 8a8cad47..1579c07b 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -303,6 +303,9 @@ def _patch_dynamic( # pylint: disable=too-many-locals
with manual_validated(mode, *path, channel, "mode"):
mode = valid_ugpio_mode(mode, drivers[driver].get_modes())
+ if params.get("pulse") == False: # noqa: E712 # pylint: disable=singleton-comparison
+ params["pulse"] = {"delay": 0}
+
scheme["kvmd"]["gpio"]["scheme"][channel] = {
"driver": Option("__gpio__", type=functools.partial(valid_ugpio_driver, variants=set(drivers))),
"pin": Option(None, type=drivers[driver].get_pin_validator()),