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

Two interrupt-executed functions write to the same variable #1

Open
isosphere opened this issue Jun 28, 2013 · 0 comments
Open

Two interrupt-executed functions write to the same variable #1

isosphere opened this issue Jun 28, 2013 · 0 comments
Assignees
Labels

Comments

@isosphere
Copy link
Owner

Both readerdata0() and readerdata1() write to readerdata. I suspect this is a bad idea, as they are both executed by interrupts and there is a potential for collision.

I've experimented a little bit with doing it separately and then recombining the data, but didn't have much luck.

Despite my discomfort with this, it really does seem to work. I'm not sure that it's a problem.

@ghost ghost assigned isosphere Jun 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant