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

doesn't compile anymore when servo option activated #167

Open
Windaub57 opened this issue Dec 28, 2016 · 11 comments
Open

doesn't compile anymore when servo option activated #167

Windaub57 opened this issue Dec 28, 2016 · 11 comments

Comments

@Windaub57
Copy link

sketch\src\MK_Main.cpp: In function 'void servo_init()':

sketch\src\MK_Main.cpp:813:5: error: 'servo' was not declared in this scope

 servo[0].attach(SERVO0_PIN);

 ^

sketch\src\MK_Main.cpp:848:18: error: 'STOW_Z_SERVO' was not declared in this scope

 STOW_Z_SERVO();

              ^

sketch\src\MK_Main.cpp: In function 'bool set_probe_deployed(bool)':

sketch\src\MK_Main.cpp:1837:7: error: 'servo' was not declared in this scope

   servo[Z_ENDSTOP_SERVO_NR].move(z_servo_angle[deploy ? 0 : 1]);

   ^

exit status 1

@MagoKimbra
Copy link
Member

Board?
Num servos you define?

@Windaub57
Copy link
Author

Windaub57 commented Dec 28, 2016 via email

@MagoKimbra
Copy link
Member

And Z_ENDSTOP_SERVO_NR ?

@Windaub57
Copy link
Author

Windaub57 commented Dec 29, 2016 via email

@Windaub57
Copy link
Author

looks like I opened my ticket under the wrong firmware version. I'm using the latest one : Version 4.3.09_dev

@Windaub57
Copy link
Author

sorry

@MagoKimbra
Copy link
Member

Aaaa ok....

@MagoKimbra
Copy link
Member

Do you have ramps 1.4?
I checked width ramps and all ok!!

@Windaub57
Copy link
Author

Windaub57 commented Dec 29, 2016 via email

@Windaub57
Copy link
Author

New try

I took a brand fresh copy.

I only changed :
cartesian -> delta
#define Z_ENDSTOP_SERVO_NR 0
#define NUM_SERVOS 1
#define Z_PROBE_PIN ORIG_Z_MIN_PIN

=> compil

Still get the same error. Any last ideas :) ?

@MagoKimbra
Copy link
Member

and #define ENABLE_SERVOS?

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