serialhdl: name the threads per mcu

Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
This commit is contained in:
Timofey Titovets
2025-07-25 19:11:50 +02:00
committed by KevinOConnor
parent 73c6674306
commit 39d01158ba
2 changed files with 10 additions and 5 deletions

View File

@@ -564,8 +564,8 @@ class MCU:
if self._name.startswith('mcu '):
self._name = self._name[4:]
# Serial port
wp = "mcu '%s': " % (self._name)
self._serial = serialhdl.SerialReader(self._reactor, warn_prefix=wp)
name = self._name
self._serial = serialhdl.SerialReader(self._reactor, mcu_name = name)
self._baud = 0
self._canbus_iface = None
canbus_uuid = config.get('canbus_uuid', None)