Skip to content

Commit

Permalink
Also ignore CAN_ERR_PROT
Browse files Browse the repository at this point in the history
  • Loading branch information
Timple committed Oct 28, 2019
1 parent 806361b commit 5e1d93b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socketcan_interface/include/socketcan_interface/socketcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ class SocketCANInterface : public AsioDriver<boost::asio::posix::stream_descript
}
can_err_mask_t err_mask =
( CAN_ERR_TX_TIMEOUT /* TX timeout (by netdevice driver) */
//CAN_ERR_LOSTARB /* lost arbitration / data[0] (Not a fatal error) */
//CAN_ERR_LOSTARB /* lost arbitration / data[0] (Not an error) */
| CAN_ERR_CRTL /* controller problems / data[1] */
| CAN_ERR_PROT /* protocol violations / data[2..3] */
//CAN_ERR_PROT /* protocol violations / data[2..3] (Not an error) */
| CAN_ERR_TRX /* transceiver status / data[4] */
| CAN_ERR_ACK /* received no ACK on transmission */
| CAN_ERR_BUSOFF /* bus off */
Expand Down

0 comments on commit 5e1d93b

Please sign in to comment.