mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
gpio: short for for disabling the pulse
This commit is contained in:
parent
f5ff9c142a
commit
816e518547
@ -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()),
|
||||
|
||||
@ -68,6 +68,12 @@ kvmd:
|
||||
pulse:
|
||||
delay: 0
|
||||
|
||||
__v4_const1__:
|
||||
pin: 6
|
||||
mode: output
|
||||
switch: false
|
||||
pulse: false
|
||||
|
||||
led1:
|
||||
pin: 19
|
||||
mode: input
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user