diff options
author | Maxim Devaev <[email protected]> | 2023-08-06 03:36:54 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-08-06 03:36:54 +0300 |
commit | 92c3620a86338061d6ccb476b56fc90f7541b621 (patch) | |
tree | 0ee72ef91a1429805625ef7ed55f980d0aff622a /kvmd/plugins/hid/spi.py | |
parent | 472605734e3363b3f2f4e577a358eecfc3a7855a (diff) |
mcu hid: optional power detecting on the hid device
Diffstat (limited to 'kvmd/plugins/hid/spi.py')
-rw-r--r-- | kvmd/plugins/hid/spi.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmd/plugins/hid/spi.py b/kvmd/plugins/hid/spi.py index f43f344d..6b093f38 100644 --- a/kvmd/plugins/hid/spi.py +++ b/kvmd/plugins/hid/spi.py @@ -162,6 +162,9 @@ class _SpiPhy(BasePhy): # pylint: disable=too-many-instance-attributes else: yield None + def __str__(self) -> str: + return f"SPI(bus={self.__bus}, chip={self.__chip})" + # ===== class Plugin(BaseMcuHid): |