teachop / FlexCAN_Library

Arduino library for CAN on Teensy 3.1
The Unlicense
154 stars 122 forks source link

Patch 3 #21

Open H4nky84 opened 7 years ago

H4nky84 commented 7 years ago

Added support for RTR bits in can packet as well as another tested transceiver.

Alex-2-5 commented 7 years ago

I downloaded the patch3 when it was commited but i have a problem. As soon as i start "CANbus1.begin(myMask1);" the program freezes. Nothing goes on.

Any Idea what it could be?

EDIT: Sorry, i think i found it. I had "old style" FlexCAN CANbus0(500000); FlexCAN CANbus1(500000);

But it should be (as seen in the example): FlexCAN CANbus0(500000, 0); FlexCAN CANbus1(500000, 1);

I hope that was it.

H4nky84 commented 7 years ago

Hopefully that is it.

Make sure you download the current one on my list as I made some changes earlier today.