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

Can't use library due to yield calls on Arduino #44

Closed
Ilidur opened this issue Sep 18, 2016 · 2 comments
Closed

Can't use library due to yield calls on Arduino #44

Ilidur opened this issue Sep 18, 2016 · 2 comments

Comments

@Ilidur
Copy link

Ilidur commented Sep 18, 2016

I tried using your library as is but it seems like yield() is not a standard call in the Arduino IDE. Trying to google it has lead me to install a wrong Scheduling library and couldn't find a right one either. In the end I had to remove the two calls before installing it.

@electrokean
Copy link

electrokean commented Sep 18, 2016

If you have any recent version of Arduino it will define yield(). It was added in Arduino 1.5.1 in late 2012.
For the AVR platform it is an empty function in hooks.c, but can be overridden on other platforms which use cooperative multi-tasking.
What version of Arduino are you using, and what board are you compiling for?

@Ilidur
Copy link
Author

Ilidur commented Sep 18, 2016

Ah I see. The arduino package in ubuntu is stuck at 1.0.6. The "2:" in front confused me and thought it was a higher version.

@Ilidur Ilidur closed this as completed Sep 18, 2016
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