diff options
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | kvmd/apps/cleanup/__init__.py | 14 |
2 files changed, 9 insertions, 7 deletions
@@ -18,6 +18,8 @@ tox: _testenv run: make _run TESTENV_CMD="python -m kvmd.apps.kvmd" +run-cleanup: + make _run TESTENV_CMD="python -m kvmd.apps.cleanup" run-no-cache: make _run TESTENV_CMD="python -m kvmd.apps.kvmd" TESTENV_OPTS=--no-cache diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py index f64d6f75..4aa7f2c1 100644 --- a/kvmd/apps/cleanup/__init__.py +++ b/kvmd/apps/cleanup/__init__.py @@ -39,13 +39,13 @@ def main() -> None: logger.info("Cleaning up ...") with gpio.bcm(): for (name, pin) in [ - ("hid_reset", config.hid.pinout.reset), - ("msd_target", config.msd.pinout.target), - ("msd_reset", config.msd.pinout.reset), - ("atx_power_switch", config.atx.pinout.power_switch), - ("atx_reset_switch", config.atx.pinout.reset_switch), - ("streamer_cap", config.streamer.pinout.cap), - ("streamer_conv", config.streamer.pinout.conv), + ("hid_reset_pin", config.hid.reset_pin), + ("msd_target_pin", config.msd.target_pin), + ("msd_reset_pin", config.msd.reset_pin), + ("atx_power_switch_pin", config.atx.power_switch_pin), + ("atx_reset_switch_pin", config.atx.reset_switch_pin), + ("streamer_cap_pin", config.streamer.cap_pin), + ("streamer_conv_pin", config.streamer.conv_pin), ]: if pin > 0: logger.info("Writing value=0 to pin=%d (%s)", pin, name) |