-
Notifications
You must be signed in to change notification settings - Fork 30
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
platformio will not compile example code, says CallAsService expects 0 arguments #22
Comments
Thanks for pointing that our @charlessowers |
I uninstalled ESP-FlexyStepper in pio using the library manager and installed it again. I get the same error when trying to run the example from the readme on this git. There is a library.properties file in the .pio/libdeps/ESP-FlexyStepper and line 2 has "version=1.4.4" same with the library.json file "version": "1.4.4", platformio.ini has "pkerspe/ESP-FlexyStepper@^1.4.4" |
Did you check the actual code in the Libdeps folder? (I mean the header file and actual cpp file) |
The source code in the libdeps folder has the startAsService function with zero args |
I published a new release (1.4.5) hope that helps. Will most likely take a while for platformio lib manager to pick it uo |
I cut and pasted the example code in the Readme.md and added #include <ESP_FlexyStepper.h> but when I try to compile and load it, Platformio gives me the following error:
If I change the line to "stepper.startAsService();" the program compiles, loads, and runs.
Looking at the source code on GitHub I see that startAsService takes an int for an argument but it looks like for some reason Platformio thinks it takes no arguments.
Could Platformio be linked to an older version even though it says "pkerspe/ESP-FlexyStepper@^1.4.4" in the platformio,ini file? I used the library manager to load the ESP-flexyStepper, I am not sure how to do it manually.
The text was updated successfully, but these errors were encountered: