Ver código fonte

Z and Y dual stepper drivers error

if you try to enable Z_DUAL_STEPPER_DRIVERS the error "You cannot have dual drivers for both Y and Z" shows even if you don't have defined Y_DUAL_STEPPER_DRIVERS and don't let you compile the firmware

to solve this problem i change this line:

#ifdef Z_DUAL_STEPPER_DRIVERS && Y_DUAL_STEPPER_DRIVERS

to:

#if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS)

now the error only show if you define both Z_DUAL_STEPPER_DRIVERS and Y_DUAL_STEPPER_DRIVERS
RicardoGA 10 anos atrás
pai
commit
d29615dc0c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/Configuration_adv.h

+ 1
- 1
Marlin/Configuration_adv.h Ver arquivo

@@ -161,7 +161,7 @@
161 161
   #define EXTRUDERS 1
162 162
 #endif
163 163
 
164
-#ifdef Z_DUAL_STEPPER_DRIVERS && Y_DUAL_STEPPER_DRIVERS
164
+#if defined (Z_DUAL_STEPPER_DRIVERS) && defined (Y_DUAL_STEPPER_DRIVERS)
165 165
   #error "You cannot have dual drivers for both Y and Z"
166 166
 #endif
167 167
 

Carregando…
Cancelar
Salvar