diff options
author | Devaev Maxim <[email protected]> | 2020-09-06 08:47:43 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-07 05:54:25 +0300 |
commit | a6dac4bd8495bc04f762a3ad415d301fb10498c9 (patch) | |
tree | ea81c6a9a9ea2521cc4b9bdfaee9b00d5b6e9c6d /kvmd/apps/cleanup/__init__.py | |
parent | e8bd1e264822967e1ddc628bf507664a5f4b9679 (diff) |
ugpio plugins
Diffstat (limited to 'kvmd/apps/cleanup/__init__.py')
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index ca1e8faf..bb9b3b71 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -61,16 +61,16 @@ def _clear_gpio(config: Section) -> None: ("streamer/cap", config.streamer.cap_pin), ("streamer/conv", config.streamer.conv_pin), - *([ - (f"gpio/{channel}", params.pin) - for (channel, params) in config.gpio.scheme.items() - if params.mode == "output" - ]), + # *([ + # (f"gpio/{channel}", params.pin) + # for (channel, params) in config.gpio.scheme.items() + # if params.mode == "output" + # ]), ]: if pin >= 0: logger.info("Writing 0 to GPIO pin=%d (%s)", pin, name) try: - gpio.set_output(pin, initial=False) + gpio.set_output(pin, False) except Exception: logger.exception("Can't clear GPIO pin=%d (%s)", pin, name) |