mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
mcu hid: optional power detecting on the hid device
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user