diff options
author | Devaev Maxim <[email protected]> | 2019-06-08 04:10:56 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-06-08 04:11:19 +0300 |
commit | 445f2f9e63fb71cd6f9d721817a1d72dc761ff35 (patch) | |
tree | ddd1d3cca621b6d9a7d2883e5efc5a952e7adce8 /kvmd/apps/__init__.py | |
parent | 85c67ffcbb43e80f06ba97d96c4e327f0c152a68 (diff) |
improved msd state machine
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index 5119f62f..99648d10 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -207,11 +207,12 @@ def _get_config_scheme(sections: List[str]) -> Dict: "target_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), "reset_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), - "device": Option("", type=valid_abs_path, only_if="enabled", unpack_as="device_path"), - "init_delay": Option(2.0, type=valid_float_f01), - "reset_delay": Option(1.0, type=valid_float_f01), - "write_meta": Option(True, type=valid_bool), - "chunk_size": Option(65536, type=(lambda arg: valid_number(arg, min=1024))), + "device": Option("", type=valid_abs_path, only_if="enabled", unpack_as="device_path"), + "init_delay": Option(1.0, type=valid_float_f01), + "init_retries": Option(5, type=valid_int_f1), + "reset_delay": Option(1.0, type=valid_float_f01), + "write_meta": Option(True, type=valid_bool), + "chunk_size": Option(65536, type=(lambda arg: valid_number(arg, min=1024))), }, "streamer": { |