Closed protttoy closed 1 year ago
I managed to fix it using a suggestion from ChatGPT:
The error message says that the function "min" cannot be used with a parameter of type 'byte' and a parameter of type 'int'. This function is used in "mcp_can.cpp" line 751. The issue seems to be caused by the fact that the "min" function is being passed a "byte" and an "int". To resolve this issue, you could cast the "int" to a "byte". Try changing this line:
dta_len = min(len, MAX_CHAR_IN_MESSAGE);
to this:
dta_len = min(len, (byte)MAX_CHAR_IN_MESSAGE);
Error compiling for ESP32 board. ESP32 Arduino core 2.0.6. Windows 11 64bit. Arduino IDE 1.8.19
Error massage from Arduino: