MKFirmware / MarlinKimbra

📟 MK 3D Printer Firmware for Arduino
52 stars 39 forks source link

doesn't compile anymore when servo option activated #167

Open Windaub57 opened 7 years ago

Windaub57 commented 7 years ago

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 commented 7 years ago

Board? Num servos you define?

Windaub57 commented 7 years ago

arduino mega 2560

define NUM_SERVOS 1


De : MagoKimbra notifications@github.com Envoyé : mercredi 28 décembre 2016 22:30 À : MagoKimbra/MarlinKimbra Cc : Windaub57; Author Objet : Re: [MagoKimbra/MarlinKimbra] doesn't compile anymore when servo option activated (#167)

Board? Num servos you define?

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MagoKimbra/MarlinKimbra/issues/167#issuecomment-269543879, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKbjxms8mtQN7gVwNYSk5_uxpTg9Gkpxks5rMtTrgaJpZM4LXMq0.

MagoKimbra commented 7 years ago

And Z_ENDSTOP_SERVO_NR ?

Windaub57 commented 7 years ago

define Z_ENDSTOP_SERVO_NR 0


De : MagoKimbra notifications@github.com Envoyé : mercredi 28 décembre 2016 23:45 À : MagoKimbra/MarlinKimbra Cc : Windaub57; Author Objet : Re: [MagoKimbra/MarlinKimbra] doesn't compile anymore when servo option activated (#167)

And Z_ENDSTOP_SERVO_NR ?

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/MagoKimbra/MarlinKimbra/issues/167#issuecomment-269553418, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AKbjxkCYpFVh2V7nGDeP_tl07mhUVgl6ks5rMuZzgaJpZM4LXMq0.

Windaub57 commented 7 years ago

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

Windaub57 commented 7 years ago

sorry

MagoKimbra commented 7 years ago

Aaaa ok....

MagoKimbra commented 7 years ago

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

Windaub57 commented 7 years ago

yes I have ramps 1.4. I also tried the online configurator and got the exact same pb. same after upgrading to arduino1.8.

I'll try again.

Windaub57 commented 7 years ago

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 commented 7 years ago

and #define ENABLE_SERVOS?