Skip to content

Commit 44cefbe

Browse files
committed
1 parent 119999d commit 44cefbe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

can/io/asc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from ..util import channel2int
2020
from .generic import BaseIOHandler
2121

22+
2223
CAN_MSG_EXT = 0x80000000
2324
CAN_ID_MASK = 0x1FFFFFFF
2425

@@ -48,7 +49,6 @@ def _extract_can_id(str_can_id):
4849
else:
4950
is_extended = False
5051
can_id = int(str_can_id, 16)
51-
#logging.debug('ASCReader: _extract_can_id("%s") -> %x, %r', str_can_id, can_id, is_extended)
5252
return can_id, is_extended
5353

5454
def __iter__(self):
@@ -72,12 +72,12 @@ def __iter__(self):
7272
except ValueError:
7373
pass
7474

75-
if dummy.strip()[0:10] == 'ErrorFrame':
75+
if dummy.strip()[0:10].lower() == 'errorframe':
7676
msg = Message(timestamp=timestamp, is_error_frame=True,
7777
channel=channel)
7878
yield msg
7979

80-
elif not isinstance(channel, int) or dummy.strip()[0:10] == 'Statistic:':
80+
elif not isinstance(channel, int) or dummy.strip()[0:10].lower() == 'statistic:':
8181
pass
8282

8383
elif dummy[-1:].lower() == 'r':

0 commit comments

Comments
 (0)