summaryrefslogtreecommitdiff
path: root/kvmd/apps/cleanup/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-11 20:54:27 +0300
committerDevaev Maxim <[email protected]>2019-09-11 20:54:27 +0300
commitca2eabc01f7294bd6fe35c734580ada91a2230a1 (patch)
treeb65aa5e2e61d0708a0eebafff298bfae70cc2d26 /kvmd/apps/cleanup/__init__.py
parent2535892723e275a3e31aa318edc788869c643fd0 (diff)
atx plugin
Diffstat (limited to 'kvmd/apps/cleanup/__init__.py')
-rw-r--r--kvmd/apps/cleanup/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py
index f25e679a..680f080b 100644
--- a/kvmd/apps/cleanup/__init__.py
+++ b/kvmd/apps/cleanup/__init__.py
@@ -51,8 +51,10 @@ def main(argv: Optional[List[str]]=None) -> None:
*([
("hid_reset_pin", config.hid.reset_pin, True),
] if config.hid.type == "tty" else []),
- ("atx_power_switch_pin", config.atx.power_switch_pin, config.atx.enabled),
- ("atx_reset_switch_pin", config.atx.reset_switch_pin, config.atx.enabled),
+ *([
+ ("atx_power_switch_pin", config.atx.power_switch_pin, True),
+ ("atx_reset_switch_pin", config.atx.reset_switch_pin, True),
+ ] if config.atx.type == "gpio" else []),
("msd_target_pin", config.msd.target_pin, config.msd.enabled),
("msd_reset_pin", config.msd.reset_pin, config.msd.enabled),
("streamer_cap_pin", config.streamer.cap_pin, True),