summaryrefslogtreecommitdiff
path: root/kvmd/plugins/hid/spi.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2023-08-06 03:36:54 +0300
committerMaxim Devaev <[email protected]>2023-08-06 03:36:54 +0300
commit92c3620a86338061d6ccb476b56fc90f7541b621 (patch)
tree0ee72ef91a1429805625ef7ed55f980d0aff622a /kvmd/plugins/hid/spi.py
parent472605734e3363b3f2f4e577a358eecfc3a7855a (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.py3
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):