diff options
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), |