diff options
author | Devaev Maxim <[email protected]> | 2020-09-06 08:47:43 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-09-07 05:54:25 +0300 |
commit | a6dac4bd8495bc04f762a3ad415d301fb10498c9 (patch) | |
tree | ea81c6a9a9ea2521cc4b9bdfaee9b00d5b6e9c6d /kvmd/plugins/hid/serial.py | |
parent | e8bd1e264822967e1ddc628bf507664a5f4b9679 (diff) |
ugpio plugins
Diffstat (limited to 'kvmd/plugins/hid/serial.py')
-rw-r--r-- | kvmd/plugins/hid/serial.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/kvmd/plugins/hid/serial.py b/kvmd/plugins/hid/serial.py index cee0048d..5abab1f5 100644 --- a/kvmd/plugins/hid/serial.py +++ b/kvmd/plugins/hid/serial.py @@ -175,7 +175,7 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst multiprocessing.Process.__init__(self, daemon=True) - self.__reset_pin = gpio.set_output(reset_pin) + self.__reset_pin = gpio.set_output(reset_pin, False) self.__reset_delay = reset_delay self.__device_path = device_path @@ -217,9 +217,9 @@ class Plugin(BaseHid, multiprocessing.Process): # pylint: disable=too-many-inst "noop": Option(False, type=valid_bool), } - def start(self) -> None: + def sysprep(self) -> None: get_logger(0).info("Starting HID daemon ...") - multiprocessing.Process.start(self) + self.start() async def get_state(self) -> Dict: state = await self.__state_flags.get() |