diff options
author | Maxim Devaev <[email protected]> | 2023-06-01 20:23:40 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-06-01 20:23:40 +0300 |
commit | 816e518547372c3ff0eb816a659e9ffdb14c1fa0 (patch) | |
tree | f6f710070ccf1386f977cdfb2964f0c62b92138a /kvmd | |
parent | f5ff9c142a46c1fface9ffa3176e2f99a2ec7931 (diff) |
gpio: short for for disabling the pulse
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/apps/__init__.py | 3 |
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()), |