aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/mcu.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-06-09 14:46:56 -0400
committerKevin O'Connor <kevin@koconnor.net>2021-06-09 18:58:26 -0400
commit31fcd491fd9fd99f81599558b5256cfaaa078da0 (patch)
tree0e7858ba24d325d2be74edec420788e45321830e /klippy/mcu.py
parentf00281d1e670e00ebcef06076abf2116c3f2d461 (diff)
downloadkutter-31fcd491fd9fd99f81599558b5256cfaaa078da0.tar.gz
kutter-31fcd491fd9fd99f81599558b5256cfaaa078da0.tar.xz
kutter-31fcd491fd9fd99f81599558b5256cfaaa078da0.zip
serialhdl: Support prepending a warn_prefix to error and log messages
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/mcu.py')
-rw-r--r--klippy/mcu.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/mcu.py b/klippy/mcu.py
index 6fb66247..f03fd16d 100644
--- a/klippy/mcu.py
+++ b/klippy/mcu.py
@@ -415,7 +415,8 @@ class MCU:
if self._name.startswith('mcu '):
self._name = self._name[4:]
# Serial port
- self._serial = serialhdl.SerialReader(self._reactor)
+ wp = "mcu '%s': " % (self._name)
+ self._serial = serialhdl.SerialReader(self._reactor, warn_prefix=wp)
self._baud = 0
self._canbus_iface = None
canbus_uuid = config.get('canbus_uuid', None)