summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-02-08 03:20:02 +0300
committerDevaev Maxim <[email protected]>2019-02-08 03:20:02 +0300
commit5166891dcd204678e0b5d479fcf47f644be378b5 (patch)
treeab02686813b113da2989a11a122442e7a777b9f8 /kvmd
parente22426155dc3a05c8ce15fc7fbfd3df80aa57bfb (diff)
fixed cleanup config
Diffstat (limited to 'kvmd')
-rw-r--r--kvmd/apps/cleanup/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/cleanup/__init__.py b/kvmd/apps/cleanup/__init__.py
index 89492ebd..01dfe703 100644
--- a/kvmd/apps/cleanup/__init__.py
+++ b/kvmd/apps/cleanup/__init__.py
@@ -21,8 +21,8 @@ def main() -> None:
("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"]),
+ ("streamer_cap", config["streamer"]["pinout"].get("cap", -1)),
+ ("streamer_conv", config["streamer"]["pinout"].get("conv", -1)),
]:
if pin > 0:
logger.info("Writing value=0 to pin=%d (%s)", pin, name)