mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
fixed cleanup config
This commit is contained in:
parent
e22426155d
commit
5166891dcd
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user