Missing CAN Driver after upgrade

kmuehle
Posts: 1
Joined: Thu Dec 10, 2015 4:20 pm

Missing CAN Driver after upgrade

Postby kmuehle » Mon Aug 05, 2024 6:09 pm

I have been using CAN driver of Heltec 0.06 release for Arduino. After grading to Esp32 3.3 release, I am missing the can driver (cannot find driver/can.h) ? Do I need to load another / different package?

lbernstone
Posts: 826
Joined: Mon Jul 22, 2019 3:20 pm

Re: Missing CAN Driver after upgrade

Postby lbernstone » Tue Aug 06, 2024 5:18 pm

CAN has been "rebranded" to TWAI, so the driver can be found at driver/twai.h. This was not simply a renaming, so your code will require some upgrading to work.
can.h was deprecated in IDF 4.0, so you should have been getting a warning in the compiler about this for the past 3 years.

Who is online

Users browsing this forum: No registered users and 45 guests