summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-30 07:55:32 +0300
committerDevaev Maxim <[email protected]>2019-09-30 07:55:32 +0300
commitbcae85c8b98059b091c9aeea70eaf414b2ad068b (patch)
tree397fa878419a530818952c7111ad5b03fb974e81 /kvmd/apps
parent5b8ac7ba70ee0ade4139fa888a23e4d4d3eb22cd (diff)
hdmi: decreased stream restart
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 8014d8f6..b04f13a6 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -51,6 +51,7 @@ from ..yamlconf.loader import load_yaml_file
from ..validators.basic import valid_bool
from ..validators.basic import valid_number
+from ..validators.basic import valid_float_f0
from ..validators.basic import valid_float_f01
from ..validators.auth import valid_users_list
@@ -224,9 +225,9 @@ def _get_config_scheme() -> Dict:
"cap_pin": Option(-1, type=valid_gpio_pin_optional),
"conv_pin": Option(-1, type=valid_gpio_pin_optional),
- "sync_delay": Option(1.0, type=valid_float_f01),
- "init_delay": Option(3.0, type=valid_float_f01),
- "init_restart_after": Option(0.0, type=(lambda arg: valid_number(arg, min=0.0, type=float))),
+ "sync_delay": Option(1.0, type=valid_float_f0),
+ "init_delay": Option(3.0, type=valid_float_f0),
+ "init_restart_after": Option(0.0, type=valid_float_f0),
"shutdown_delay": Option(10.0, type=valid_float_f01),
"state_poll": Option(1.0, type=valid_float_f01),