configurable usb device version and max power

This commit is contained in:
Maxim Devaev
2022-04-17 22:25:56 +03:00
parent f0b5c1ebba
commit 95928ea4d5
2 changed files with 14 additions and 8 deletions

View File

@@ -491,7 +491,9 @@ def _get_config_scheme() -> Dict:
"manufacturer": Option("PiKVM"),
"product": Option("Composite KVM Device"),
"serial": Option("CAFEBABE"),
"device_version": Option(-1, type=functools.partial(valid_number, min=-1, max=0xFFFF)),
"usb_version": Option(0x0200, type=valid_otg_id),
"max_power": Option(250, type=functools.partial(valid_number, min=50, max=500)),
"remote_wakeup": Option(False, type=valid_bool),
"gadget": Option("kvmd", type=valid_otg_gadget),