Explorar el Código

Missed some variable declarations

Integrated fixes from henrikbrixandersen pull request #504
Gord Christmas hace 11 años
padre
commit
a733537ddd
Se han modificado 3 ficheros con 8 adiciones y 2 borrados
  1. 4
    0
      Marlin/Marlin_main.cpp
  2. 2
    0
      Marlin/Servo.cpp
  3. 2
    2
      Marlin/pins.h

+ 4
- 0
Marlin/Marlin_main.cpp Ver fichero

@@ -177,6 +177,10 @@ float extruder_offset[2][EXTRUDERS] = {
177 177
 #endif
178 178
 uint8_t active_extruder = 0;
179 179
 int fanSpeed=0;
180
+#ifdef SERVO_ENDSTOPS
181
+  int servo_endstops[] = SERVO_ENDSTOPS;
182
+  int servo_endstop_angles[] = SERVO_ENDSTOP_ANGLES;
183
+#endif
180 184
 #ifdef BARICUDA
181 185
 int ValvePressure=0;
182 186
 int EtoPPressure=0;

+ 2
- 0
Marlin/Servo.cpp Ver fichero

@@ -41,6 +41,8 @@
41 41
  detach()    - Stops an attached servos from pulsing its i/o pin.
42 42
 
43 43
 */
44
+#include "Configuration.h" 
45
+
44 46
 #ifdef NUM_SERVOS
45 47
 #include <avr/interrupt.h>
46 48
 #include <Arduino.h>

+ 2
- 2
Marlin/pins.h Ver fichero

@@ -391,7 +391,7 @@
391 391
       #define SERVO2_PIN         5
392 392
     #endif
393 393
 
394
-    #if NUM_SERVOS > 2
394
+    #if NUM_SERVOS > 3
395 395
       #define SERVO3_PIN         4
396 396
     #endif
397 397
   #endif
@@ -1846,4 +1846,4 @@
1846 1846
                         HEATER_BED_PIN, FAN_PIN,                  \
1847 1847
                         _E0_PINS _E1_PINS _E2_PINS             \
1848 1848
                         analogInputToDigitalPin(TEMP_0_PIN), analogInputToDigitalPin(TEMP_1_PIN), analogInputToDigitalPin(TEMP_2_PIN), analogInputToDigitalPin(TEMP_BED_PIN) }
1849
-#endif
1849
+#endif

Loading…
Cancelar
Guardar