mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 17:50:29 +08:00
pass close()
This commit is contained in:
parent
002823b6e1
commit
41223fa8b2
@ -133,7 +133,10 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
|
|||||||
|
|
||||||
async def cleanup(self) -> None:
|
async def cleanup(self) -> None:
|
||||||
if self.__chip:
|
if self.__chip:
|
||||||
self.__chip.close()
|
try:
|
||||||
|
self.__chip.close()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
# =====
|
# =====
|
||||||
|
|
||||||
|
|||||||
@ -176,7 +176,10 @@ class _Gpio:
|
|||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
if self.__chip:
|
if self.__chip:
|
||||||
self.__chip.close()
|
try:
|
||||||
|
self.__chip.close()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
@aiotools.atomic
|
@aiotools.atomic
|
||||||
async def reset(self) -> None:
|
async def reset(self) -> None:
|
||||||
|
|||||||
@ -183,7 +183,10 @@ class _Gpio:
|
|||||||
|
|
||||||
def close(self) -> None:
|
def close(self) -> None:
|
||||||
if self.__chip:
|
if self.__chip:
|
||||||
self.__chip.close()
|
try:
|
||||||
|
self.__chip.close()
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
def switch_to_local(self) -> None:
|
def switch_to_local(self) -> None:
|
||||||
assert self.__target_line
|
assert self.__target_line
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user