diff options
author | Devaev Maxim <[email protected]> | 2020-10-05 07:13:08 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-10-05 07:13:08 +0300 |
commit | 9bd129f70b1837517cf16f14e104e59d6f4fe12c (patch) | |
tree | b9ce1084ee2f47a42af50b69d5806ce990cf66df /kvmd/apps/otg | |
parent | bfb54767fa41b671bc97e2709f1514c5e84b0a4c (diff) |
configurable maxpower
Diffstat (limited to 'kvmd/apps/otg')
-rw-r--r-- | kvmd/apps/otg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/otg/__init__.py b/kvmd/apps/otg/__init__.py index ce731823..e14dd895 100644 --- a/kvmd/apps/otg/__init__.py +++ b/kvmd/apps/otg/__init__.py @@ -190,7 +190,7 @@ def _cmd_start(config: Section) -> None: _mkdir(config_path) _mkdir(join(config_path, "strings/0x409")) _write(join(config_path, "strings/0x409/configuration"), "Config 1: Pi-KVM device") - _write(join(config_path, "MaxPower"), "250") + _write(join(config_path, "MaxPower"), str(config.otg.max_power)) if config.otg.devices.serial.enabled: logger.info("===== Required Serial =====") |