From f17506c504ee371c76de2ab717c04eec8d5faa35 Mon Sep 17 00:00:00 2001 From: GDV0 Date: Wed, 11 Sep 2013 23:09:37 +0200 Subject: [PATCH] FIx compilation error when enabling SERVO_ENDSTOPS (#591) --- Marlin/Marlin_main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp index 1c8cb6376..65b829bdc 100644 --- a/Marlin/Marlin_main.cpp +++ b/Marlin/Marlin_main.cpp @@ -772,7 +772,7 @@ static void homeaxis(int axis) { // Engage Servo endstop if enabled #ifdef SERVO_ENDSTOPS - if (SERVO_ENDSTOPS[axis] > -1) { + if (servo_endstops[axis] > -1) { servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2]); } #endif @@ -814,7 +814,7 @@ static void homeaxis(int axis) { // Retract Servo endstop if enabled #ifdef SERVO_ENDSTOPS - if (SERVO_ENDSTOPS[axis] > -1) { + if (servo_endstops[axis] > -1) { servos[servo_endstops[axis]].write(servo_endstop_angles[axis * 2 + 1]); } #endif