mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-02 11:01:53 +08:00
plugin hid
This commit is contained in:
@@ -48,7 +48,9 @@ def main(argv: Optional[List[str]]=None) -> None:
|
||||
logger.info("Cleaning up ...")
|
||||
with gpio.bcm():
|
||||
for (name, pin, enabled) in [
|
||||
("hid_reset_pin", config.hid.reset_pin, True),
|
||||
*([
|
||||
("hid_reset_pin", config.hid.params.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),
|
||||
("msd_target_pin", config.msd.target_pin, config.msd.enabled),
|
||||
|
||||
Reference in New Issue
Block a user