get rid of the otg-unlock helper

This commit is contained in:
Maxim Devaev
2022-04-10 06:00:10 +03:00
parent 122242ea47
commit 486f1be986
24 changed files with 18 additions and 151 deletions

View File

@@ -53,7 +53,10 @@ class Drive:
# =====
def set_image_path(self, path: str) -> None:
self.__set_param("file", path)
if path:
self.__set_param("file", path)
else:
self.__set_param("forced_eject", "")
def get_image_path(self) -> str:
return self.__get_param("file")