Missing CAN Driver after upgrade
Posted: Mon Aug 05, 2024 6:09 pm
by kmuehle
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?
Re: Missing CAN Driver after upgrade
Posted: Tue Aug 06, 2024 5:18 pm
by lbernstone
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.