refactoring

This commit is contained in:
Maxim Devaev
2022-04-01 02:53:10 +03:00
parent b775239d72
commit 17e140729e
2 changed files with 11 additions and 2 deletions

View File

@@ -38,6 +38,15 @@ def find_udc(udc: str) -> str:
return udc # fe980000.usb
# =====
U_STATE = "state"
def get_udc_path(udc: str, *parts: str) -> str:
return os.path.join(f"{env.SYSFS_PREFIX}/sys/class/udc", udc, *parts)
# =====
G_UDC = "UDC"
G_FUNCTIONS = "functions"
G_PROFILE_NAME = "c.1"