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.
1 parent 908fd87 commit 1ac5510Copy full SHA for 1ac5510
can/player.py
@@ -73,6 +73,12 @@ def main():
73
action="store_false",
74
)
75
76
+ parser.add_argument(
77
+ "--error-frames",
78
+ help="Also send error frames to the interface.",
79
+ action="store_true",
80
+ )
81
+
82
parser.add_argument(
83
"-g",
84
"--gap",
@@ -111,6 +117,8 @@ def main():
111
117
]
112
118
can.set_logging_level(logging_level_name)
113
119
120
+ error_frames = results.error_frames
121
114
122
config = {"single_handle": True}
115
123
if results.interface:
116
124
config["interface"] = results.interface
@@ -132,6 +140,8 @@ def main():
132
140
133
141
try:
134
142
for m in in_sync:
143
+ if m.is_error_frame and not error_frames:
144
+ continue
135
145
if verbosity >= 3:
136
146
print(m)
137
147
bus.send(m)
0 commit comments