diff options
author | Maxim Devaev <[email protected]> | 2022-04-01 02:53:10 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2022-04-01 02:53:10 +0300 |
commit | 17e140729e1cb20d3684cdf590be712647c3d98e (patch) | |
tree | 6df21503fd474426dd1e8e2989247eed93b9e73e /kvmd/plugins/hid | |
parent | b775239d7265a1bcbb6e32f06546e53d389802d6 (diff) |
refactoring
Diffstat (limited to 'kvmd/plugins/hid')
-rw-r--r-- | kvmd/plugins/hid/otg/device.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/otg/device.py b/kvmd/plugins/hid/otg/device.py index e76b7294..112d8bec 100644 --- a/kvmd/plugins/hid/otg/device.py +++ b/kvmd/plugins/hid/otg/device.py @@ -32,10 +32,10 @@ from typing import Generator from ....logging import get_logger -from .... import env from .... import tools from .... import aiomulti from .... import aioproc +from .... import usb from .events import BaseEvent @@ -74,7 +74,7 @@ class BaseDeviceProcess(multiprocessing.Process): # pylint: disable=too-many-in self.__stop_event = multiprocessing.Event() def start(self, udc: str) -> None: # type: ignore # pylint: disable=arguments-differ - self.__udc_state_path = os.path.join(f"{env.SYSFS_PREFIX}/sys/class/udc", udc, "state") + self.__udc_state_path = usb.get_udc_path(udc, usb.U_STATE) super().start() def run(self) -> None: # pylint: disable=too-many-branches |