diff options
-rw-r--r-- | kvmd/apps/__init__.py | 3 | ||||
-rw-r--r-- | testenv/v2-hdmi-rpi4.override.yaml | 6 |
2 files changed, 9 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()), diff --git a/testenv/v2-hdmi-rpi4.override.yaml b/testenv/v2-hdmi-rpi4.override.yaml index 7160a090..be93d455 100644 --- a/testenv/v2-hdmi-rpi4.override.yaml +++ b/testenv/v2-hdmi-rpi4.override.yaml @@ -68,6 +68,12 @@ kvmd: pulse: delay: 0 + __v4_const1__: + pin: 6 + mode: output + switch: false + pulse: false + led1: pin: 19 mode: input |