We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 113ca4e + 56fb131 commit ebae360Copy full SHA for ebae360
can/io/canutils.py
@@ -160,6 +160,8 @@ def on_message_received(self, msg):
160
timestamp = msg.timestamp
161
162
channel = msg.channel if msg.channel is not None else self.channel
163
+ if isinstance(channel, int) or isinstance(channel, str) and channel.isdigit():
164
+ channel = f"can{channel}"
165
166
framestr = "(%f) %s" % (timestamp, channel)
167
0 commit comments