diff options
author | Devaev Maxim <[email protected]> | 2019-09-11 06:28:04 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-09-11 06:28:04 +0300 |
commit | e17889ba426a167804796a830043e59e1941972f (patch) | |
tree | 82662396ba0d4de24a7dede7ac9d667b23bba9de /kvmd/apps/cleanup/__init__.py | |
parent | 447904e46804f27ee0b3b8efdd39dd2d441fc1f6 (diff) |
plugin hid
Diffstat (limited to 'kvmd/apps/cleanup/__init__.py')
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index dff70510..8aaf3452 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -48,7 +48,9 @@ def main(argv: Optional[List[str]]=None) -> None: logger.info("Cleaning up ...") with gpio.bcm(): for (name, pin, enabled) in [ - ("hid_reset_pin", config.hid.reset_pin, True), + *([ + ("hid_reset_pin", config.hid.params.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), ("msd_target_pin", config.msd.target_pin, config.msd.enabled), |