Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watchFor() #10

Closed
Tdarty opened this issue May 6, 2015 · 3 comments
Closed

watchFor() #10

Tdarty opened this issue May 6, 2015 · 3 comments

Comments

@Tdarty
Copy link

Tdarty commented May 6, 2015

Hi,
I use CAN_EchoTest.ino in exemple.
I try to use "Can0.watchFor();".
It does'nt work without id. (no interupt for the mailbox)
When i use "Can0.watchFor(0x007);" i recive my frame correctly.

I look in the due_can.cpp and i see :

int CANRaw::watchFor()
{
int retVal = setRXFilter(0, 0, false);
enable_interrupt(getMailboxIer(0));
setRXFilter(0, 0, true);
enable_interrupt(getMailboxIer(1));

return retVal;

}

I don't know if it's normal but i don't understand how it work.

@collin80
Copy link
Owner

collin80 commented May 6, 2015

I've had another report of this so I'm not going to say that you're wrong here. For some reason the watchFor() function does seem to be broken. I will keep this issue open and try to get to the bottom of what is going on.

@Tdarty
Copy link
Author

Tdarty commented May 6, 2015

Thank

@collin80
Copy link
Owner

This problem should now be corrected in the most recent version. Closing the ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants