summaryrefslogtreecommitdiff
path: root/kvmd/apps/otgmsd
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-10-27 02:24:53 +0300
committerDevaev Maxim <[email protected]>2019-10-27 02:24:53 +0300
commitb8abf790f2cd5044be20b060801cbb8d82ad17f1 (patch)
treee8b6a241b085bacc60feb6bbf3e64a807af8a040 /kvmd/apps/otgmsd
parent1aa568c718d3e193ddbd865af1c4910c8328b66c (diff)
func renamed
Diffstat (limited to 'kvmd/apps/otgmsd')
-rw-r--r--kvmd/apps/otgmsd/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kvmd/apps/otgmsd/__init__.py b/kvmd/apps/otgmsd/__init__.py
index 2fe566ba..2e7122ac 100644
--- a/kvmd/apps/otgmsd/__init__.py
+++ b/kvmd/apps/otgmsd/__init__.py
@@ -63,7 +63,7 @@ def _set_param(gadget: str, instance: int, param: str, value: str) -> None:
raise
-def _unlock_msd() -> None:
+def _unlock() -> None:
# https://github.com/torvalds/linux/blob/3039fad/drivers/usb/gadget/function/f_mass_storage.c#L2924
found = False
for proc in psutil.process_iter():
@@ -112,7 +112,7 @@ def main(argv: Optional[List[str]]=None) -> None:
get_param = (lambda param: _get_param(config.otg.gadget, options.instance, param))
if options.unlock:
- _unlock_msd()
+ _unlock()
if options.eject:
set_param("file", "")