summaryrefslogtreecommitdiff
path: root/kvmd/apps/__init__.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2022-04-17 22:25:56 +0300
committerMaxim Devaev <[email protected]>2022-04-17 22:25:56 +0300
commit95928ea4d54b8facb463d2a5cfc026d64c3c4d65 (patch)
tree17a1c95f4ea685eac493913d522c93df16698cc7 /kvmd/apps/__init__.py
parentf0b5c1ebba452fe2043b2c5d0f25fa1d9dcb672d (diff)
configurable usb device version and max power
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r--kvmd/apps/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index ef277839..afabd560 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -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),