summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-02-20 05:37:19 +0300
committerDevaev Maxim <[email protected]>2019-02-20 05:37:19 +0300
commit70e0a1df45745a3c14b74e39c4e4100be8414c7b (patch)
tree14453bcd5c21278a2c457d9688d43b532250e4b8
parentd0be0ef9e8be816adc7f583fd28ba72b678c0b95 (diff)
fixed cleanup pinout
-rw-r--r--Makefile2
-rw-r--r--kvmd/apps/cleanup/__init__.py14
2 files changed, 9 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 8f493b56..2897cdcc 100644
--- a/Makefile
+++ b/Makefile
@@ -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)