Parcourir la source

#7504 missing part

#7504 integration has missed this part.
When more than 1 servo is used with bltouch it's impossible to predefine default servo delay for it.
In my original fix I completely removed this part but maybe this is a better compromise
GMagician il y a 7 ans
Parent
révision
869d7f3703
1 fichiers modifiés avec 4 ajouts et 2 suppressions
  1. 4
    2
      Marlin/Conditionals_LCD.h

+ 4
- 2
Marlin/Conditionals_LCD.h Voir le fichier

376
       #define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
376
       #define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
377
     #endif
377
     #endif
378
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
378
     #undef DEACTIVATE_SERVOS_AFTER_MOVE
379
-    #undef SERVO_DELAY
380
-    #define SERVO_DELAY { 50 }
379
+    #if NUM_SERVOS = 1
380
+      #undef SERVO_DELAY
381
+      #define SERVO_DELAY { 50 }
382
+	#endif
381
     #ifndef BLTOUCH_DELAY
383
     #ifndef BLTOUCH_DELAY
382
       #define BLTOUCH_DELAY 375
384
       #define BLTOUCH_DELAY 375
383
     #endif
385
     #endif

Chargement…
Annuler
Enregistrer