mcu hid: optional power detecting on the hid device

This commit is contained in:
Maxim Devaev
2023-08-06 03:36:54 +03:00
parent 472605734e
commit 92c3620a86
4 changed files with 61 additions and 21 deletions

View File

@@ -80,6 +80,9 @@ class _SerialPhy(BasePhy):
with serial.Serial(self.__device_path, self.__speed, timeout=self.__read_timeout) as tty:
yield _SerialPhyConnection(tty)
def __str__(self) -> str:
return f"Serial(path={self.__device_path})"
# =====
class Plugin(BaseMcuHid):