sandeepmistry / arduino-CAN

An Arduino library for sending and receiving data using CAN bus.
MIT License
684 stars 235 forks source link

ESP32 esp_intr.h header file deprecation warning #113

Open pharapeti opened 1 year ago

pharapeti commented 1 year ago

Background When compiling for board esp32doit-devkit-v1, the following deprecation warning is generated.

In file included from .pio/libdeps/esp32doit-devkit-v1/CAN/src/ESP32SJA1000.cpp:6:
/Users/xxx/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_intr.h:8:2: warning: #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead [-Wcpp]
 #warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead

Potential solution Include esp_intr_alloc.h instead of esp_intr.h

Maximize0987 commented 9 months ago

Do you know what the solution is for this? Thanks