fixed cleanup config

This commit is contained in:
Devaev Maxim 2019-02-08 03:20:02 +03:00
parent e22426155d
commit 5166891dcd

View File

@ -21,8 +21,8 @@ def main() -> None:
("msd_reset", config["msd"]["pinout"]["reset"]), ("msd_reset", config["msd"]["pinout"]["reset"]),
("atx_power_switch", config["atx"]["pinout"]["power_switch"]), ("atx_power_switch", config["atx"]["pinout"]["power_switch"]),
("atx_reset_switch", config["atx"]["pinout"]["reset_switch"]), ("atx_reset_switch", config["atx"]["pinout"]["reset_switch"]),
("streamer_cap", config["streamer"]["pinout"]["cap"]), ("streamer_cap", config["streamer"]["pinout"].get("cap", -1)),
("streamer_conv", config["streamer"]["pinout"]["conv"]), ("streamer_conv", config["streamer"]["pinout"].get("conv", -1)),
]: ]:
if pin > 0: if pin > 0:
logger.info("Writing value=0 to pin=%d (%s)", pin, name) logger.info("Writing value=0 to pin=%d (%s)", pin, name)