You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the example of CAN_SendingTest I just put some println and It seems that the function Can0.available() isn't working (return 0 all the time), the sending frames works (returning 1), and I don't have any idea why is available() not working...Is there some trick?? Are there some connections missed?
The text was updated successfully, but these errors were encountered:
Which version of the library do you use? In older versions this code was included:
intCANRaw::available()
{
intval;
if (rx_avail())
{
val=rx_buffer_head-rx_buffer_tail;
//Now, because this is a cyclic buffer it is possible that the ordering was reversed//So, handle that caseif (val<0) val+=SIZE_RX_BUFFER;
}
elsereturn0;
}
In the example of CAN_SendingTest I just put some println and It seems that the function Can0.available() isn't working (return 0 all the time), the sending frames works (returning 1), and I don't have any idea why is available() not working...Is there some trick?? Are there some connections missed?
The text was updated successfully, but these errors were encountered: