Ver código fonte

Z Endstop Servo => Z Probe Servo

Scott Lahteine 7 anos atrás
pai
commit
adcb87f0db
73 arquivos alterados com 103 adições e 101 exclusões
  1. 2
    2
      .travis.yml
  2. 1
    1
      Marlin/Configuration.h
  3. 1
    1
      Marlin/src/Marlin.cpp
  4. 1
    1
      Marlin/src/config/default/Configuration.h
  5. 1
    1
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  6. 1
    1
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  7. 1
    1
      Marlin/src/config/examples/Anet/A6/Configuration.h
  8. 1
    1
      Marlin/src/config/examples/Anet/A8/Configuration.h
  9. 1
    1
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  10. 1
    1
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  11. 1
    1
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  12. 1
    1
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  13. 1
    1
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  14. 1
    1
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  15. 1
    1
      Marlin/src/config/examples/Cartesio/Configuration.h
  16. 1
    1
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  17. 1
    1
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  18. 1
    1
      Marlin/src/config/examples/Creality/CR-10mini/Configuration.h
  19. 1
    1
      Marlin/src/config/examples/Creality/Ender-2/Configuration.h
  20. 1
    1
      Marlin/src/config/examples/Creality/Ender-4/Configuration.h
  21. 1
    1
      Marlin/src/config/examples/Felix/Configuration.h
  22. 1
    1
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  23. 1
    1
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  24. 1
    1
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  25. 1
    1
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  26. 1
    1
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  27. 1
    1
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  28. 1
    1
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  29. 1
    1
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  30. 1
    1
      Marlin/src/config/examples/MakerParts/Configuration.h
  31. 1
    1
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  32. 1
    1
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  33. 1
    1
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  34. 1
    1
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  35. 1
    1
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  36. 1
    1
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  37. 1
    1
      Marlin/src/config/examples/RigidBot/Configuration.h
  38. 1
    1
      Marlin/src/config/examples/SCARA/Configuration.h
  39. 1
    1
      Marlin/src/config/examples/STM32F10/Configuration.h
  40. 1
    1
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  41. 1
    1
      Marlin/src/config/examples/TheBorg/Configuration.h
  42. 1
    1
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  43. 1
    1
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  44. 1
    1
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  45. 1
    1
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  46. 1
    1
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  47. 1
    1
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  48. 1
    1
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  49. 1
    1
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  50. 1
    1
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  51. 1
    1
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  52. 1
    1
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  53. 1
    1
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  54. 1
    1
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  55. 1
    1
      Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h
  56. 1
    1
      Marlin/src/config/examples/delta/generic/Configuration.h
  57. 1
    1
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  58. 1
    1
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  59. 1
    1
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  60. 1
    1
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  61. 1
    1
      Marlin/src/config/examples/makibox/Configuration.h
  62. 1
    1
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  63. 1
    1
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  64. 1
    1
      Marlin/src/config/examples/wt150/Configuration.h
  65. 1
    1
      Marlin/src/core/utility.cpp
  66. 5
    5
      Marlin/src/gcode/config/M43.cpp
  67. 5
    5
      Marlin/src/inc/Conditionals_LCD.h
  68. 2
    2
      Marlin/src/inc/Conditionals_post.h
  69. 9
    7
      Marlin/src/inc/SanityCheck.h
  70. 6
    6
      Marlin/src/lcd/ultralcd.cpp
  71. 6
    6
      Marlin/src/module/probe.cpp
  72. 1
    1
      Marlin/src/module/probe.h
  73. 3
    3
      Marlin/src/module/servo.h

+ 2
- 2
.travis.yml Ver arquivo

@@ -99,7 +99,7 @@ script:
99 99
   # ...with AUTO_BED_LEVELING_3POINT, DEBUG_LEVELING_FEATURE, EEPROM_SETTINGS, EEPROM_CHITCHAT, EXTENDED_CAPABILITIES_REPORT, and AUTO_REPORT_TEMPERATURES
100 100
   #
101 101
   - restore_configs
102
-  - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
102
+  - opt_enable NUM_SERVOS Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
103 103
   - opt_set NUM_SERVOS 1
104 104
   - opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS EEPROM_CHITCHAT
105 105
   - opt_enable_adv NO_VOLUMETRICS EXTENDED_CAPABILITIES_REPORT AUTO_REPORT_TEMPERATURES AUTOTEMP G38_PROBE_TARGET
@@ -376,7 +376,7 @@ script:
376 376
   # Test a Servo Probe
377 377
   #
378 378
   - restore_configs
379
-  - opt_enable NUM_SERVOS Z_ENDSTOP_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
379
+  - opt_enable NUM_SERVOS Z_PROBE_SERVO_NR Z_SERVO_ANGLES DEACTIVATE_SERVOS_AFTER_MOVE
380 380
   - opt_enable AUTO_BED_LEVELING_3POINT DEBUG_LEVELING_FEATURE EEPROM_SETTINGS
381 381
   - build_marlin_pio ${TRAVIS_BUILD_DIR} ${TEST_PLATFORM}
382 382
   #

+ 1
- 1
Marlin/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/Marlin.cpp Ver arquivo

@@ -754,7 +754,7 @@ void setup() {
754 754
     servo_init();
755 755
   #endif
756 756
 
757
-  #if HAS_Z_SERVO_ENDSTOP
757
+  #if HAS_Z_SERVO_PROBE
758 758
     servo_probe_init();
759 759
   #endif
760 760
 

+ 1
- 1
Marlin/src/config/default/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h Ver arquivo

@@ -687,7 +687,7 @@
687 687
 /**
688 688
  * Z Servo Probe, such as an endstop switch on a rotating arm.
689 689
  */
690
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
690
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
691 691
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
692 692
 
693 693
 /**

+ 1
- 1
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Anet/A6/Configuration.h Ver arquivo

@@ -715,7 +715,7 @@
715 715
 /**
716 716
  * Z Servo Probe, such as an endstop switch on a rotating arm.
717 717
  */
718
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
718
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
719 719
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
720 720
 
721 721
 /**

+ 1
- 1
Marlin/src/config/examples/Anet/A8/Configuration.h Ver arquivo

@@ -674,7 +674,7 @@
674 674
 /**
675 675
  * Z Servo Probe, such as an endstop switch on a rotating arm.
676 676
  */
677
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
677
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
678 678
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
679 679
 
680 680
 /**

+ 1
- 1
Marlin/src/config/examples/Azteeg/X5GT/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@ const bool Z_MIN_PROBE_ENDSTOP_INVERTING = true; // set to true to invert the lo
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/BQ/Hephestos/Configuration.h Ver arquivo

@@ -655,7 +655,7 @@
655 655
 /**
656 656
  * Z Servo Probe, such as an endstop switch on a rotating arm.
657 657
  */
658
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
658
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
659 659
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
660 660
 
661 661
 /**

+ 1
- 1
Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h Ver arquivo

@@ -668,7 +668,7 @@
668 668
 /**
669 669
  * Z Servo Probe, such as an endstop switch on a rotating arm.
670 670
  */
671
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
671
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
672 672
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
673 673
 
674 674
 /**

+ 1
- 1
Marlin/src/config/examples/BQ/WITBOX/Configuration.h Ver arquivo

@@ -655,7 +655,7 @@
655 655
 /**
656 656
  * Z Servo Probe, such as an endstop switch on a rotating arm.
657 657
  */
658
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
658
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
659 659
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
660 660
 
661 661
 /**

+ 1
- 1
Marlin/src/config/examples/Cartesio/Configuration.h Ver arquivo

@@ -666,7 +666,7 @@
666 666
 /**
667 667
  * Z Servo Probe, such as an endstop switch on a rotating arm.
668 668
  */
669
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
669
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
670 670
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
671 671
 
672 672
 /**

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10/Configuration.h Ver arquivo

@@ -677,7 +677,7 @@
677 677
 /**
678 678
  * Z Servo Probe, such as an endstop switch on a rotating arm.
679 679
  */
680
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
680
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
681 681
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
682 682
 
683 683
 /**

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10S/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Creality/CR-10mini/Configuration.h Ver arquivo

@@ -686,7 +686,7 @@
686 686
 /**
687 687
  * Z Servo Probe, such as an endstop switch on a rotating arm.
688 688
  */
689
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
689
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
690 690
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
691 691
 
692 692
 /**

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-2/Configuration.h Ver arquivo

@@ -671,7 +671,7 @@
671 671
 /**
672 672
  * Z Servo Probe, such as an endstop switch on a rotating arm.
673 673
  */
674
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
674
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
675 675
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
676 676
 
677 677
 /**

+ 1
- 1
Marlin/src/config/examples/Creality/Ender-4/Configuration.h Ver arquivo

@@ -677,7 +677,7 @@
677 677
 /**
678 678
  * Z Servo Probe, such as an endstop switch on a rotating arm.
679 679
  */
680
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
680
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
681 681
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
682 682
 
683 683
 /**

+ 1
- 1
Marlin/src/config/examples/Felix/Configuration.h Ver arquivo

@@ -649,7 +649,7 @@
649 649
 /**
650 650
  * Z Servo Probe, such as an endstop switch on a rotating arm.
651 651
  */
652
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
652
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
653 653
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
654 654
 
655 655
 /**

+ 1
- 1
Marlin/src/config/examples/Felix/DUAL/Configuration.h Ver arquivo

@@ -649,7 +649,7 @@
649 649
 /**
650 650
  * Z Servo Probe, such as an endstop switch on a rotating arm.
651 651
  */
652
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
652
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
653 653
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
654 654
 
655 655
 /**

+ 1
- 1
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h Ver arquivo

@@ -673,7 +673,7 @@
673 673
 /**
674 674
  * Z Servo Probe, such as an endstop switch on a rotating arm.
675 675
  */
676
-#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
676
+#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
677 677
 #define Z_SERVO_ANGLES {40,85}  // Z Servo Deploy and Stow angles
678 678
 
679 679
 /**

+ 1
- 1
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h Ver arquivo

@@ -682,7 +682,7 @@
682 682
 /**
683 683
  * Z Servo Probe, such as an endstop switch on a rotating arm.
684 684
  */
685
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
685
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
686 686
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
687 687
 
688 688
 /**

+ 1
- 1
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 1   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 1   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {10,90}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h Ver arquivo

@@ -683,7 +683,7 @@
683 683
 /**
684 684
  * Z Servo Probe, such as an endstop switch on a rotating arm.
685 685
  */
686
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
686
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
687 687
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
688 688
 
689 689
 /**

+ 1
- 1
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h Ver arquivo

@@ -682,7 +682,7 @@
682 682
 /**
683 683
  * Z Servo Probe, such as an endstop switch on a rotating arm.
684 684
  */
685
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
685
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
686 686
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
687 687
 
688 688
 /**

+ 1
- 1
Marlin/src/config/examples/Infitary/i3-M508/Configuration.h Ver arquivo

@@ -671,7 +671,7 @@
671 671
 /**
672 672
  * Z Servo Probe, such as an endstop switch on a rotating arm.
673 673
  */
674
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
674
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
675 675
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
676 676
 
677 677
 /**

+ 1
- 1
Marlin/src/config/examples/JGAurora/A5/Configuration.h Ver arquivo

@@ -679,7 +679,7 @@
679 679
 /**
680 680
  * Z Servo Probe, such as an endstop switch on a rotating arm.
681 681
  */
682
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
682
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
683 683
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
684 684
 
685 685
 /**

+ 1
- 1
Marlin/src/config/examples/MakerParts/Configuration.h Ver arquivo

@@ -687,7 +687,7 @@
687 687
 /**
688 688
  * Z Servo Probe, such as an endstop switch on a rotating arm.
689 689
  */
690
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
690
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
691 691
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
692 692
 
693 693
 /**

+ 1
- 1
Marlin/src/config/examples/Malyan/M150/Configuration.h Ver arquivo

@@ -687,7 +687,7 @@
687 687
 /**
688 688
  * Z Servo Probe, such as an endstop switch on a rotating arm.
689 689
  */
690
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
690
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
691 691
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
692 692
 
693 693
 /**

+ 1
- 1
Marlin/src/config/examples/Malyan/M200/Configuration.h Ver arquivo

@@ -666,7 +666,7 @@
666 666
 /**
667 667
  * Z Servo Probe, such as an endstop switch on a rotating arm.
668 668
  */
669
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
669
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
670 670
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
671 671
 
672 672
 /**

+ 1
- 1
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h Ver arquivo

@@ -671,7 +671,7 @@
671 671
 /**
672 672
  * Z Servo Probe, such as an endstop switch on a rotating arm.
673 673
  */
674
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
674
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
675 675
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
676 676
 
677 677
 /**

+ 1
- 1
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h Ver arquivo

@@ -671,7 +671,7 @@
671 671
 /**
672 672
  * Z Servo Probe, such as an endstop switch on a rotating arm.
673 673
  */
674
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
674
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
675 675
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
676 676
 
677 677
 /**

+ 1
- 1
Marlin/src/config/examples/Mks/Sbase/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/RigidBot/Configuration.h Ver arquivo

@@ -665,7 +665,7 @@
665 665
 /**
666 666
  * Z Servo Probe, such as an endstop switch on a rotating arm.
667 667
  */
668
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
668
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
669 669
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
670 670
 
671 671
 /**

+ 1
- 1
Marlin/src/config/examples/SCARA/Configuration.h Ver arquivo

@@ -678,7 +678,7 @@
678 678
 /**
679 679
  * Z Servo Probe, such as an endstop switch on a rotating arm.
680 680
  */
681
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
681
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
682 682
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
683 683
 
684 684
 /**

+ 1
- 1
Marlin/src/config/examples/STM32F10/Configuration.h Ver arquivo

@@ -670,7 +670,7 @@
670 670
 /**
671 671
  * Z Servo Probe, such as an endstop switch on a rotating arm.
672 672
  */
673
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
673
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
674 674
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
675 675
 
676 676
 /**

+ 1
- 1
Marlin/src/config/examples/Sanguinololu/Configuration.h Ver arquivo

@@ -698,7 +698,7 @@
698 698
 /**
699 699
  * Z Servo Probe, such as an endstop switch on a rotating arm.
700 700
  */
701
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
701
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
702 702
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
703 703
 
704 704
 /**

+ 1
- 1
Marlin/src/config/examples/TheBorg/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/TinyBoy2/Configuration.h Ver arquivo

@@ -718,7 +718,7 @@
718 718
 /**
719 719
  * Z Servo Probe, such as an endstop switch on a rotating arm.
720 720
  */
721
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
721
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
722 722
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
723 723
 
724 724
 /**

+ 1
- 1
Marlin/src/config/examples/Tronxy/X1/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Tronxy/X5S/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Tronxy/XY100/Configuration.h Ver arquivo

@@ -678,7 +678,7 @@
678 678
 /**
679 679
  * Z Servo Probe, such as an endstop switch on a rotating arm.
680 680
  */
681
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
681
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
682 682
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
683 683
 
684 684
 /**

+ 1
- 1
Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Velleman/K8200/Configuration.h Ver arquivo

@@ -696,7 +696,7 @@
696 696
 /**
697 697
  * Z Servo Probe, such as an endstop switch on a rotating arm.
698 698
  */
699
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
699
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
700 700
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
701 701
 
702 702
 /**

+ 1
- 1
Marlin/src/config/examples/Velleman/K8400/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h Ver arquivo

@@ -677,7 +677,7 @@
677 677
 /**
678 678
  * Z Servo Probe, such as an endstop switch on a rotating arm.
679 679
  */
680
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
680
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
681 681
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
682 682
 
683 683
 /**

+ 1
- 1
Marlin/src/config/examples/adafruit/ST7565/Configuration.h Ver arquivo

@@ -667,7 +667,7 @@
667 667
 /**
668 668
  * Z Servo Probe, such as an endstop switch on a rotating arm.
669 669
  */
670
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
670
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
671 671
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
672 672
 
673 673
 /**

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h Ver arquivo

@@ -747,7 +747,7 @@
747 747
 /**
748 748
  * Z Servo Probe, such as an endstop switch on a rotating arm.
749 749
  */
750
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
750
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
751 751
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
752 752
 
753 753
 /**

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h Ver arquivo

@@ -747,7 +747,7 @@
747 747
 /**
748 748
  * Z Servo Probe, such as an endstop switch on a rotating arm.
749 749
  */
750
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
750
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
751 751
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
752 752
 
753 753
 /**

+ 1
- 1
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h Ver arquivo

@@ -747,7 +747,7 @@
747 747
 /**
748 748
  * Z Servo Probe, such as an endstop switch on a rotating arm.
749 749
  */
750
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
750
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
751 751
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
752 752
 
753 753
 /**

+ 1
- 1
Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h Ver arquivo

@@ -752,7 +752,7 @@
752 752
 /**
753 753
  * Z Servo Probe, such as an endstop switch on a rotating arm.
754 754
  */
755
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
755
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
756 756
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
757 757
 
758 758
 /**

+ 1
- 1
Marlin/src/config/examples/delta/generic/Configuration.h Ver arquivo

@@ -737,7 +737,7 @@
737 737
 /**
738 738
  * Z Servo Probe, such as an endstop switch on a rotating arm.
739 739
  */
740
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
740
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
741 741
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
742 742
 
743 743
 /**

+ 1
- 1
Marlin/src/config/examples/delta/kossel_mini/Configuration.h Ver arquivo

@@ -737,7 +737,7 @@
737 737
 /**
738 738
  * Z Servo Probe, such as an endstop switch on a rotating arm.
739 739
  */
740
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
740
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
741 741
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
742 742
 
743 743
 /**

+ 1
- 1
Marlin/src/config/examples/delta/kossel_pro/Configuration.h Ver arquivo

@@ -730,7 +730,7 @@
730 730
 /**
731 731
  * Z Servo Probe, such as an endstop switch on a rotating arm.
732 732
  */
733
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
733
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
734 734
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
735 735
 
736 736
 /**

+ 1
- 1
Marlin/src/config/examples/delta/kossel_xl/Configuration.h Ver arquivo

@@ -749,7 +749,7 @@
749 749
 /**
750 750
  * Z Servo Probe, such as an endstop switch on a rotating arm.
751 751
  */
752
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
752
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
753 753
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
754 754
 
755 755
 /**

+ 1
- 1
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h Ver arquivo

@@ -680,7 +680,7 @@
680 680
 /**
681 681
  * Z Servo Probe, such as an endstop switch on a rotating arm.
682 682
  */
683
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
683
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
684 684
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
685 685
 
686 686
 /**

+ 1
- 1
Marlin/src/config/examples/makibox/Configuration.h Ver arquivo

@@ -670,7 +670,7 @@
670 670
 /**
671 671
  * Z Servo Probe, such as an endstop switch on a rotating arm.
672 672
  */
673
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
673
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
674 674
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
675 675
 
676 676
 /**

+ 1
- 1
Marlin/src/config/examples/stm32f103ret6/Configuration.h Ver arquivo

@@ -669,7 +669,7 @@
669 669
 /**
670 670
  * Z Servo Probe, such as an endstop switch on a rotating arm.
671 671
  */
672
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
672
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
673 673
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
674 674
 
675 675
 /**

+ 1
- 1
Marlin/src/config/examples/tvrrug/Round2/Configuration.h Ver arquivo

@@ -662,7 +662,7 @@
662 662
 /**
663 663
  * Z Servo Probe, such as an endstop switch on a rotating arm.
664 664
  */
665
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
665
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
666 666
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
667 667
 
668 668
 /**

+ 1
- 1
Marlin/src/config/examples/wt150/Configuration.h Ver arquivo

@@ -672,7 +672,7 @@
672 672
 /**
673 673
  * Z Servo Probe, such as an endstop switch on a rotating arm.
674 674
  */
675
-//#define Z_ENDSTOP_SERVO_NR 0   // Defaults to SERVO 0 connector.
675
+//#define Z_PROBE_SERVO_NR 0   // Defaults to SERVO 0 connector.
676 676
 //#define Z_SERVO_ANGLES {70,0}  // Z Servo Deploy and Stow angles
677 677
 
678 678
 /**

+ 1
- 1
Marlin/src/core/utility.cpp Ver arquivo

@@ -283,7 +283,7 @@ void safe_delay(millis_t ms) {
283 283
       SERIAL_ECHOLNPGM("FIX_MOUNTED_PROBE");
284 284
     #elif ENABLED(BLTOUCH)
285 285
       SERIAL_ECHOLNPGM("BLTOUCH");
286
-    #elif HAS_Z_SERVO_ENDSTOP
286
+    #elif HAS_Z_SERVO_PROBE
287 287
       SERIAL_ECHOLNPGM("SERVO PROBE");
288 288
     #elif ENABLED(Z_PROBE_SLED)
289 289
       SERIAL_ECHOLNPGM("Z_PROBE_SLED");

+ 5
- 5
Marlin/src/gcode/config/M43.cpp Ver arquivo

@@ -29,7 +29,7 @@
29 29
 #include "../../pins/pinsDebug.h"
30 30
 #include "../../module/endstops.h"
31 31
 
32
-#if HAS_Z_SERVO_ENDSTOP
32
+#if HAS_Z_SERVO_PROBE
33 33
   #include "../../module/probe.h"
34 34
   #include "../../module/servo.h"
35 35
 #endif
@@ -92,14 +92,14 @@ inline void servo_probe_test() {
92 92
     SERIAL_ERROR_START();
93 93
     SERIAL_ERRORLNPGM("SERVO not setup");
94 94
 
95
-  #elif !HAS_Z_SERVO_ENDSTOP
95
+  #elif !HAS_Z_SERVO_PROBE
96 96
 
97 97
     SERIAL_ERROR_START();
98
-    SERIAL_ERRORLNPGM("Z_ENDSTOP_SERVO_NR not setup");
98
+    SERIAL_ERRORLNPGM("Z_PROBE_SERVO_NR not setup");
99 99
 
100
-  #else // HAS_Z_SERVO_ENDSTOP
100
+  #else // HAS_Z_SERVO_PROBE
101 101
 
102
-    const uint8_t probe_index = parser.byteval('P', Z_ENDSTOP_SERVO_NR);
102
+    const uint8_t probe_index = parser.byteval('P', Z_PROBE_SERVO_NR);
103 103
 
104 104
     SERIAL_PROTOCOLLNPGM("Servo probe test");
105 105
     SERIAL_PROTOCOLLNPAIR(".  using index:  ", probe_index);

+ 5
- 5
Marlin/src/inc/Conditionals_LCD.h Ver arquivo

@@ -458,11 +458,11 @@
458 458
  * and uses "special" angles for its state.
459 459
  */
460 460
 #if ENABLED(BLTOUCH)
461
-  #ifndef Z_ENDSTOP_SERVO_NR
462
-    #define Z_ENDSTOP_SERVO_NR 0
461
+  #ifndef Z_PROBE_SERVO_NR
462
+    #define Z_PROBE_SERVO_NR 0
463 463
   #endif
464 464
   #ifndef NUM_SERVOS
465
-    #define NUM_SERVOS (Z_ENDSTOP_SERVO_NR + 1)
465
+    #define NUM_SERVOS (Z_PROBE_SERVO_NR + 1)
466 466
   #endif
467 467
   #undef DEACTIVATE_SERVOS_AFTER_MOVE
468 468
   #if NUM_SERVOS == 1
@@ -497,12 +497,12 @@
497 497
 /**
498 498
  * Set a flag for a servo probe
499 499
  */
500
-#define HAS_Z_SERVO_ENDSTOP (defined(Z_ENDSTOP_SERVO_NR) && Z_ENDSTOP_SERVO_NR >= 0)
500
+#define HAS_Z_SERVO_PROBE (defined(Z_PROBE_SERVO_NR) && Z_PROBE_SERVO_NR >= 0)
501 501
 
502 502
 /**
503 503
  * Set a flag for any enabled probe
504 504
  */
505
-#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_ENDSTOP || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))
505
+#define PROBE_SELECTED (ENABLED(PROBE_MANUALLY) || ENABLED(FIX_MOUNTED_PROBE) || ENABLED(Z_PROBE_ALLEN_KEY) || HAS_Z_SERVO_PROBE || ENABLED(Z_PROBE_SLED) || ENABLED(SOLENOID_PROBE))
506 506
 
507 507
 /**
508 508
  * Clear probe pin settings when no probe is selected

+ 2
- 2
Marlin/src/inc/Conditionals_post.h Ver arquivo

@@ -901,8 +901,8 @@
901 901
  */
902 902
 
903 903
 #if HAS_SERVOS
904
-  #ifndef Z_ENDSTOP_SERVO_NR
905
-    #define Z_ENDSTOP_SERVO_NR -1
904
+  #ifndef Z_PROBE_SERVO_NR
905
+    #define Z_PROBE_SERVO_NR -1
906 906
   #endif
907 907
 #endif
908 908
 

+ 9
- 7
Marlin/src/inc/SanityCheck.h Ver arquivo

@@ -95,6 +95,8 @@
95 95
   #error "SERVO_ENDSTOP_ANGLES is deprecated. Use Z_SERVO_ANGLES instead."
96 96
 #elif defined(X_ENDSTOP_SERVO_NR) || defined(Y_ENDSTOP_SERVO_NR)
97 97
   #error "X_ENDSTOP_SERVO_NR and Y_ENDSTOP_SERVO_NR are deprecated and should be removed."
98
+#elif defined(Z_ENDSTOP_SERVO_NR)
99
+  #error "Z_ENDSTOP_SERVO_NR is now Z_PROBE_SERVO_NR. Please update your configuration."
98 100
 #elif defined(DEFAULT_XYJERK)
99 101
   #error "DEFAULT_XYJERK is deprecated. Use DEFAULT_XJERK and DEFAULT_YJERK instead."
100 102
 #elif defined(XY_TRAVEL_SPEED)
@@ -630,8 +632,8 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
630 632
 /**
631 633
  * Servo deactivation depends on servo endstops, switching nozzle, or switching extruder
632 634
  */
633
-#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_Z_SERVO_ENDSTOP && !defined(SWITCHING_NOZZLE_SERVO_NR) && !defined(SWITCHING_EXTRUDER_SERVO_NR)
634
-  #error "Z_ENDSTOP_SERVO_NR, switching nozzle, or switching extruder is required for DEACTIVATE_SERVOS_AFTER_MOVE."
635
+#if ENABLED(DEACTIVATE_SERVOS_AFTER_MOVE) && !HAS_Z_SERVO_PROBE && !defined(SWITCHING_NOZZLE_SERVO_NR) && !defined(SWITCHING_EXTRUDER_SERVO_NR)
636
+  #error "Z_PROBE_SERVO_NR, switching nozzle, or switching extruder is required for DEACTIVATE_SERVOS_AFTER_MOVE."
635 637
 #endif
636 638
 
637 639
 /**
@@ -697,7 +699,7 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
697 699
 #if 1 < 0 \
698 700
   + ENABLED(PROBE_MANUALLY) \
699 701
   + ENABLED(FIX_MOUNTED_PROBE) \
700
-  + (HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)) \
702
+  + (HAS_Z_SERVO_PROBE && DISABLED(BLTOUCH)) \
701 703
   + ENABLED(BLTOUCH) \
702 704
   + ENABLED(SOLENOID_PROBE) \
703 705
   + ENABLED(Z_PROBE_ALLEN_KEY) \
@@ -728,11 +730,11 @@ static_assert(X_MAX_LENGTH >= X_BED_SIZE && Y_MAX_LENGTH >= Y_BED_SIZE,
728 730
   /**
729 731
    * NUM_SERVOS is required for a Z servo probe
730 732
    */
731
-  #if HAS_Z_SERVO_ENDSTOP
733
+  #if HAS_Z_SERVO_PROBE
732 734
     #ifndef NUM_SERVOS
733
-      #error "You must set NUM_SERVOS for a Z servo probe (Z_ENDSTOP_SERVO_NR)."
734
-    #elif Z_ENDSTOP_SERVO_NR >= NUM_SERVOS
735
-      #error "Z_ENDSTOP_SERVO_NR must be smaller than NUM_SERVOS."
735
+      #error "You must set NUM_SERVOS for a Z servo probe (Z_PROBE_SERVO_NR)."
736
+    #elif Z_PROBE_SERVO_NR >= NUM_SERVOS
737
+      #error "Z_PROBE_SERVO_NR must be smaller than NUM_SERVOS."
736 738
     #endif
737 739
   #endif
738 740
 

+ 6
- 6
Marlin/src/lcd/ultralcd.cpp Ver arquivo

@@ -893,10 +893,10 @@ void kill_screen(const char* lcd_msg) {
893 893
       // ^ Main
894 894
       //
895 895
       MENU_BACK(MSG_MAIN);
896
-      MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
897
-      MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
898
-      MENU_ITEM(gcode, MSG_BLTOUCH_DEPLOY, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_DEPLOY)));
899
-      MENU_ITEM(gcode, MSG_BLTOUCH_STOW, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_STOW)));
896
+      MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
897
+      MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
898
+      MENU_ITEM(gcode, MSG_BLTOUCH_DEPLOY, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_DEPLOY)));
899
+      MENU_ITEM(gcode, MSG_BLTOUCH_STOW, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_STOW)));
900 900
       END_MENU();
901 901
     }
902 902
 
@@ -2686,9 +2686,9 @@ void kill_screen(const char* lcd_msg) {
2686 2686
     // BLTouch Self-Test and Reset
2687 2687
     //
2688 2688
     #if ENABLED(BLTOUCH)
2689
-      MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
2689
+      MENU_ITEM(gcode, MSG_BLTOUCH_SELFTEST, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_SELFTEST)));
2690 2690
       if (!endstops.z_probe_enabled && TEST_BLTOUCH())
2691
-        MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_ENDSTOP_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
2691
+        MENU_ITEM(gcode, MSG_BLTOUCH_RESET, PSTR("M280 P" STRINGIFY(Z_PROBE_SERVO_NR) " S" STRINGIFY(BLTOUCH_RESET)));
2692 2692
     #endif
2693 2693
 
2694 2694
     //

+ 6
- 6
Marlin/src/module/probe.cpp Ver arquivo

@@ -52,7 +52,7 @@
52 52
 
53 53
 float zprobe_zoffset; // Initialized by settings.load()
54 54
 
55
-#if HAS_Z_SERVO_ENDSTOP
55
+#if HAS_Z_SERVO_PROBE
56 56
   #include "../module/servo.h"
57 57
   const int z_servo_angle[2] = Z_SERVO_ANGLES;
58 58
 #endif
@@ -299,7 +299,7 @@ float zprobe_zoffset; // Initialized by settings.load()
299 299
 #if ENABLED(BLTOUCH)
300 300
 
301 301
   void bltouch_command(const int angle) {
302
-    MOVE_SERVO(Z_ENDSTOP_SERVO_NR, angle);  // Give the BL-Touch the command and wait
302
+    MOVE_SERVO(Z_PROBE_SERVO_NR, angle);  // Give the BL-Touch the command and wait
303 303
     safe_delay(BLTOUCH_DELAY);
304 304
   }
305 305
 
@@ -433,9 +433,9 @@ bool set_probe_deployed(const bool deploy) {
433 433
 
434 434
         dock_sled(!deploy);
435 435
 
436
-      #elif HAS_Z_SERVO_ENDSTOP && DISABLED(BLTOUCH)
436
+      #elif HAS_Z_SERVO_PROBE && DISABLED(BLTOUCH)
437 437
 
438
-        MOVE_SERVO(Z_ENDSTOP_SERVO_NR, z_servo_angle[deploy ? 0 : 1]);
438
+        MOVE_SERVO(Z_PROBE_SERVO_NR, z_servo_angle[deploy ? 0 : 1]);
439 439
 
440 440
       #elif ENABLED(Z_PROBE_ALLEN_KEY)
441 441
 
@@ -700,7 +700,7 @@ float probe_pt(const float &rx, const float &ry, const ProbePtRaise raise_after/
700 700
   return measured_z;
701 701
 }
702 702
 
703
-#if HAS_Z_SERVO_ENDSTOP
703
+#if HAS_Z_SERVO_PROBE
704 704
 
705 705
   void servo_probe_init() {
706 706
     /**
@@ -715,6 +715,6 @@ float probe_pt(const float &rx, const float &ry, const ProbePtRaise raise_after/
715 715
     STOW_Z_SERVO();
716 716
   }
717 717
 
718
-#endif // HAS_Z_SERVO_ENDSTOP
718
+#endif // HAS_Z_SERVO_PROBE
719 719
 
720 720
 #endif // HAS_BED_PROBE

+ 1
- 1
Marlin/src/module/probe.h Ver arquivo

@@ -48,7 +48,7 @@
48 48
   #define STOW_PROBE()
49 49
 #endif
50 50
 
51
-#if HAS_Z_SERVO_ENDSTOP
51
+#if HAS_Z_SERVO_PROBE
52 52
   extern const int z_servo_angle[2];
53 53
   void servo_probe_init();
54 54
 #endif

+ 3
- 3
Marlin/src/module/servo.h Ver arquivo

@@ -36,9 +36,9 @@ extern void servo_init();
36 36
 
37 37
 #include "../inc/MarlinConfig.h"
38 38
 
39
-#if HAS_Z_SERVO_ENDSTOP
40
-  #define DEPLOY_Z_SERVO() MOVE_SERVO(Z_ENDSTOP_SERVO_NR, z_servo_angle[0])
41
-  #define STOW_Z_SERVO() MOVE_SERVO(Z_ENDSTOP_SERVO_NR, z_servo_angle[1])
39
+#if HAS_Z_SERVO_PROBE
40
+  #define DEPLOY_Z_SERVO() MOVE_SERVO(Z_PROBE_SERVO_NR, z_servo_angle[0])
41
+  #define STOW_Z_SERVO() MOVE_SERVO(Z_PROBE_SERVO_NR, z_servo_angle[1])
42 42
 #endif
43 43
 
44 44
 #endif // _SERVO_H_

Carregando…
Cancelar
Salvar