1 parent 654a02a commit 2e70414Copy full SHA for 2e70414
1 file changed
can/interfaces/socketcan/socketcan.py
@@ -702,6 +702,14 @@ def __init__(
702
)
703
except OSError as error:
704
log.error("Could not enable error frames (%s)", error)
705
+ else:
706
+ # disable error frames
707
+ try:
708
+ self.socket.setsockopt(
709
+ constants.SOL_CAN_RAW, constants.CAN_RAW_ERR_FILTER, 0x0
710
+ )
711
+ except OSError as error:
712
+ log.error("Could not disable error frames (%s)", error)
713
714
# enable nanosecond resolution timestamping
715
# we can always do this since
0 commit comments