Explorar el Código

[2.0.x] Fix compile error on delta when NO_WORKSPACE_OFFSETS (#9388)

GMagician hace 7 años
padre
commit
ea9ad4e46d
Se han modificado 2 ficheros con 3 adiciones y 3 borrados
  1. 2
    2
      Marlin/src/module/motion.cpp
  2. 1
    1
      Marlin/src/module/motion.h

+ 2
- 2
Marlin/src/module/motion.cpp Ver fichero

@@ -1304,7 +1304,7 @@ void homeaxis(const AxisEnum axis) {
1304 1304
   #endif
1305 1305
 } // homeaxis()
1306 1306
 
1307
-#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE)
1307
+#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) || ENABLED(DELTA)
1308 1308
 
1309 1309
   /**
1310 1310
    * Software endstops can be used to monitor the open end of
@@ -1382,7 +1382,7 @@ void homeaxis(const AxisEnum axis) {
1382 1382
     #endif
1383 1383
   }
1384 1384
 
1385
-#endif // HAS_WORKSPACE_OFFSET || DUAL_X_CARRIAGE
1385
+#endif // HAS_WORKSPACE_OFFSET || DUAL_X_CARRIAGE || DELTA
1386 1386
 
1387 1387
 #if HAS_M206_COMMAND
1388 1388
   /**

+ 1
- 1
Marlin/src/module/motion.h Ver fichero

@@ -318,7 +318,7 @@ void homeaxis(const AxisEnum axis);
318 318
 
319 319
 #endif
320 320
 
321
-#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE)
321
+#if HAS_WORKSPACE_OFFSET || ENABLED(DUAL_X_CARRIAGE) || ENABLED(DELTA)
322 322
   void update_software_endstops(const AxisEnum axis);
323 323
 #endif
324 324
 

Loading…
Cancelar
Guardar