diff --git a/Software/Software.ino b/Software/Software.ino index a3f1f752..dd4babc3 100644 --- a/Software/Software.ino +++ b/Software/Software.ino @@ -53,6 +53,8 @@ static ACAN2515_Buffer16 gBuffer; #ifdef CAN_FD #include "src/lib/pierremolinaro-ACAN2517FD/ACAN2517FD.h" ACAN2517FD canfd(MCP2517_CS, SPI, MCP2517_INT); +#else +typedef char CANFDMessage; #endif // ModbusRTU parameters diff --git a/platformio.ini b/platformio.ini index dbfa3218..fe1d94e3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -13,6 +13,9 @@ src_dir = ./Software [env:esp32dev] platform = espressif32 +platform_packages= + framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#3.0.2 + framework-arduinoespressif32-libs @ https://github.com/espressif/arduino-esp32/releases/download/3.0.2/esp32-arduino-libs-3.0.2.zip board = esp32dev monitor_speed = 115200 monitor_filters = default, time, log2file