ESP32 CAN requires delay with newly created buffer

Hi all,

I’ve got this issue, when I make a new buffer array, and using miwagner/esp32CAN try to send a message it sends out Remote Frame (empty frame), unless I introduce 1 ms delay(). If I use buffer array that I’ve previously created, there is no issue. I’m using NODEMCU ESP32, Arduino Framework. If anyone could explain why, would be appreciated.

Thank you,
Adomas

Have you taken up this issue with the library author yet (and best with a minimal reproducable example)?

Not yet, I figured asking here first if the issue potentially isn’t dorectly related to the library.