configurable maxpower

This commit is contained in:
Devaev Maxim
2020-10-05 07:13:08 +03:00
parent bfb54767fa
commit 9bd129f70b
2 changed files with 2 additions and 1 deletions

View File

@@ -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 =====")