Skip to content

Problem - Task taskCycle( 100, Cycle) throws error: Cycle not declared in this scope #11

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

Closed
PhilRounds opened this issue Feb 5, 2016 · 1 comment

Comments

@PhilRounds
Copy link

Environment:
SoftTimer v3.1.0, PciManager 2.1.0, Arduino 1.6.7

My code:

include <PciManager.h>

include <PciListenerImp.h>

include <PciListener.h>

include <Adafruit_MotorShield.h>

include <stdlib.h>

include <Wire.h>

include "utility/Adafruit_PWMServodriver.h"

include <SoftTimer.h>

....
Task taskCycle( 100, Cycle); // This line throws the error
...

void setup() {
...
SoftTimer.add(&taskCycle);
}
void Cycle(Task* me)
{
... Either my code, or I just comment it all out, it doesn't matter.
}

If I run the same program in a different environment, it works
Arduino 1.6.1, I can't find the version# for PciManager or for SoftTimer on the pc it runs on, they're both 2014 versions.

Any suggestions?

@prampec
Copy link
Owner

prampec commented Feb 5, 2016

Please take a look at this issue:
#6

Is this what you are looking for?

@prampec prampec closed this as completed Dec 6, 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