mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
only available gpio modes
This commit is contained in:
@@ -60,12 +60,6 @@ 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"
|
||||
# ]),
|
||||
]:
|
||||
if pin >= 0:
|
||||
logger.info("Writing 0 to GPIO pin=%d (%s)", pin, name)
|
||||
|
||||
Reference in New Issue
Block a user