mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 02:51:53 +08:00
changed config hierarchy
This commit is contained in:
@@ -49,7 +49,7 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
with gpio.bcm():
|
||||
for (name, pin, enabled) in [
|
||||
*([
|
||||
("hid_reset_pin", config.hid.params.reset_pin, True),
|
||||
("hid_reset_pin", config.hid.reset_pin, True),
|
||||
] if config.hid.type == "tty" else []),
|
||||
("atx_power_switch_pin", config.atx.power_switch_pin, config.atx.enabled),
|
||||
("atx_reset_switch_pin", config.atx.reset_switch_pin, config.atx.enabled),
|
||||
|
||||
Reference in New Issue
Block a user