Browse Source

Replace M905 with unique code M900

Scott Lahteine 7 years ago
parent
commit
a00ae4790a
23 changed files with 91 additions and 49 deletions
  1. 4
    2
      Marlin/Configuration_adv.h
  2. 4
    4
      Marlin/Marlin_main.cpp
  3. 3
    3
      Marlin/configuration_store.cpp
  4. 4
    2
      Marlin/example_configurations/Cartesio/Configuration_adv.h
  5. 4
    2
      Marlin/example_configurations/Felix/Configuration_adv.h
  6. 4
    2
      Marlin/example_configurations/Hephestos/Configuration_adv.h
  7. 4
    2
      Marlin/example_configurations/Hephestos_2/Configuration_adv.h
  8. 4
    2
      Marlin/example_configurations/K8200/Configuration_adv.h
  9. 4
    2
      Marlin/example_configurations/K8400/Configuration_adv.h
  10. 4
    2
      Marlin/example_configurations/RigidBot/Configuration_adv.h
  11. 4
    2
      Marlin/example_configurations/SCARA/Configuration_adv.h
  12. 4
    2
      Marlin/example_configurations/TAZ4/Configuration_adv.h
  13. 4
    2
      Marlin/example_configurations/TinyBoy2/Configuration_adv.h
  14. 4
    2
      Marlin/example_configurations/WITBOX/Configuration_adv.h
  15. 4
    2
      Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
  16. 4
    2
      Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
  17. 4
    2
      Marlin/example_configurations/delta/generic/Configuration_adv.h
  18. 4
    2
      Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
  19. 4
    2
      Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
  20. 4
    2
      Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
  21. 4
    2
      Marlin/example_configurations/makibox/Configuration_adv.h
  22. 4
    2
      Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
  23. 4
    2
      Marlin/example_configurations/wt150/Configuration_adv.h

+ 4
- 2
Marlin/Configuration_adv.h View File

@@ -633,13 +633,15 @@
633 633
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
634 634
    * if the slicer is using variable widths or layer heights within one print!
635 635
    *
636
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
636
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
637 637
    *
638
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
638
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
639 639
    *   - W is the extrusion width in mm
640 640
    *   - H is the layer height in mm
641 641
    *   - D is the filament diameter in mm
642 642
    *
643
+   * Example: `M900 R0.0458` to set the ratio directly.
644
+   *
643 645
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
644 646
    *
645 647
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 4
Marlin/Marlin_main.cpp View File

@@ -8797,13 +8797,13 @@ inline void gcode_M503() {
8797 8797
 
8798 8798
 #if ENABLED(LIN_ADVANCE)
8799 8799
   /**
8800
-   * M905: Set and/or Get advance K factor and WH/D ratio
8800
+   * M900: Set and/or Get advance K factor and WH/D ratio
8801 8801
    *
8802 8802
    *  K<factor>                  Set advance K factor
8803 8803
    *  R<ratio>                   Set ratio directly (overrides WH/D)
8804 8804
    *  W<width> H<height> D<diam> Set ratio from WH/D
8805 8805
    */
8806
-  inline void gcode_M905() {
8806
+  inline void gcode_M900() {
8807 8807
     stepper.synchronize();
8808 8808
 
8809 8809
     const float newK = code_seen('K') ? code_value_float() : -1;
@@ -10264,8 +10264,8 @@ void process_next_command() {
10264 10264
       #endif // DUAL_X_CARRIAGE
10265 10265
 
10266 10266
       #if ENABLED(LIN_ADVANCE)
10267
-        case 905: // M905: Set advance K factor.
10268
-          gcode_M905();
10267
+        case 900: // M900: Set advance K factor.
10268
+          gcode_M900();
10269 10269
           break;
10270 10270
       #endif
10271 10271
 

+ 3
- 3
Marlin/configuration_store.cpp View File

@@ -150,8 +150,8 @@
150 150
  *  576  M906 E4   stepperE4 current                (uint16_t)
151 151
  *
152 152
  * LIN_ADVANCE:                                     8 bytes
153
- *  580  M905 K    extruder_advance_k               (float)
154
- *  584  M905 WHD  advance_ed_ratio                 (float)
153
+ *  580  M900 K    extruder_advance_k               (float)
154
+ *  584  M900 WHD  advance_ed_ratio                 (float)
155 155
  *
156 156
  *  588                                Minimum end-point
157 157
  * 1909 (588 + 36 + 9 + 288 + 988)     Maximum end-point
@@ -1665,7 +1665,7 @@ void MarlinSettings::reset() {
1665 1665
         SERIAL_ECHOLNPGM("Linear Advance:");
1666 1666
       }
1667 1667
       CONFIG_ECHO_START;
1668
-      SERIAL_ECHOPAIR("  M905 K", planner.get_extruder_advance_k());
1668
+      SERIAL_ECHOPAIR("  M900 K", planner.get_extruder_advance_k());
1669 1669
       SERIAL_ECHOLNPAIR(" R", planner.get_advance_ed_ratio());
1670 1670
     #endif
1671 1671
   }

+ 4
- 2
Marlin/example_configurations/Cartesio/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/Felix/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/Hephestos/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/Hephestos_2/Configuration_adv.h View File

@@ -614,13 +614,15 @@
614 614
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
615 615
    * if the slicer is using variable widths or layer heights within one print!
616 616
    *
617
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
617
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
618 618
    *
619
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
619
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
620 620
    *   - W is the extrusion width in mm
621 621
    *   - H is the layer height in mm
622 622
    *   - D is the filament diameter in mm
623 623
    *
624
+   * Example: `M900 R0.0458` to set the ratio directly.
625
+   *
624 626
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
625 627
    *
626 628
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/K8200/Configuration_adv.h View File

@@ -643,13 +643,15 @@
643 643
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
644 644
    * if the slicer is using variable widths or layer heights within one print!
645 645
    *
646
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
646
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
647 647
    *
648
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
648
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
649 649
    *   - W is the extrusion width in mm
650 650
    *   - H is the layer height in mm
651 651
    *   - D is the filament diameter in mm
652 652
    *
653
+   * Example: `M900 R0.0458` to set the ratio directly.
654
+   *
653 655
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
654 656
    *
655 657
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/K8400/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/RigidBot/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/SCARA/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/TAZ4/Configuration_adv.h View File

@@ -638,13 +638,15 @@
638 638
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
639 639
    * if the slicer is using variable widths or layer heights within one print!
640 640
    *
641
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
641
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
642 642
    *
643
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
643
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
644 644
    *   - W is the extrusion width in mm
645 645
    *   - H is the layer height in mm
646 646
    *   - D is the filament diameter in mm
647 647
    *
648
+   * Example: `M900 R0.0458` to set the ratio directly.
649
+   *
648 650
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
649 651
    *
650 652
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/TinyBoy2/Configuration_adv.h View File

@@ -633,13 +633,15 @@
633 633
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
634 634
    * if the slicer is using variable widths or layer heights within one print!
635 635
    *
636
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
636
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
637 637
    *
638
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
638
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
639 639
    *   - W is the extrusion width in mm
640 640
    *   - H is the layer height in mm
641 641
    *   - D is the filament diameter in mm
642 642
    *
643
+   * Example: `M900 R0.0458` to set the ratio directly.
644
+   *
643 645
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
644 646
    *
645 647
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/WITBOX/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -654,13 +654,15 @@
654 654
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
655 655
    * if the slicer is using variable widths or layer heights within one print!
656 656
    *
657
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
657
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
658 658
    *
659
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
659
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
660 660
    *   - W is the extrusion width in mm
661 661
    *   - H is the layer height in mm
662 662
    *   - D is the filament diameter in mm
663 663
    *
664
+   * Example: `M900 R0.0458` to set the ratio directly.
665
+   *
664 666
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
665 667
    *
666 668
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -654,13 +654,15 @@
654 654
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
655 655
    * if the slicer is using variable widths or layer heights within one print!
656 656
    *
657
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
657
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
658 658
    *
659
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
659
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
660 660
    *   - W is the extrusion width in mm
661 661
    *   - H is the layer height in mm
662 662
    *   - D is the filament diameter in mm
663 663
    *
664
+   * Example: `M900 R0.0458` to set the ratio directly.
665
+   *
664 666
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
665 667
    *
666 668
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/generic/Configuration_adv.h View File

@@ -651,13 +651,15 @@
651 651
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
652 652
    * if the slicer is using variable widths or layer heights within one print!
653 653
    *
654
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
654
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
655 655
    *
656
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
656
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
657 657
    *   - W is the extrusion width in mm
658 658
    *   - H is the layer height in mm
659 659
    *   - D is the filament diameter in mm
660 660
    *
661
+   * Example: `M900 R0.0458` to set the ratio directly.
662
+   *
661 663
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
662 664
    *
663 665
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h View File

@@ -651,13 +651,15 @@
651 651
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
652 652
    * if the slicer is using variable widths or layer heights within one print!
653 653
    *
654
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
654
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
655 655
    *
656
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
656
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
657 657
    *   - W is the extrusion width in mm
658 658
    *   - H is the layer height in mm
659 659
    *   - D is the filament diameter in mm
660 660
    *
661
+   * Example: `M900 R0.0458` to set the ratio directly.
662
+   *
661 663
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
662 664
    *
663 665
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h View File

@@ -657,13 +657,15 @@
657 657
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
658 658
    * if the slicer is using variable widths or layer heights within one print!
659 659
    *
660
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
660
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
661 661
    *
662
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
662
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
663 663
    *   - W is the extrusion width in mm
664 664
    *   - H is the layer height in mm
665 665
    *   - D is the filament diameter in mm
666 666
    *
667
+   * Example: `M900 R0.0458` to set the ratio directly.
668
+   *
667 669
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
668 670
    *
669 671
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h View File

@@ -651,13 +651,15 @@
651 651
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
652 652
    * if the slicer is using variable widths or layer heights within one print!
653 653
    *
654
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
654
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
655 655
    *
656
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
656
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
657 657
    *   - W is the extrusion width in mm
658 658
    *   - H is the layer height in mm
659 659
    *   - D is the filament diameter in mm
660 660
    *
661
+   * Example: `M900 R0.0458` to set the ratio directly.
662
+   *
661 663
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
662 664
    *
663 665
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/makibox/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h View File

@@ -630,13 +630,15 @@
630 630
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
631 631
    * if the slicer is using variable widths or layer heights within one print!
632 632
    *
633
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
633
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
634 634
    *
635
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
635
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
636 636
    *   - W is the extrusion width in mm
637 637
    *   - H is the layer height in mm
638 638
    *   - D is the filament diameter in mm
639 639
    *
640
+   * Example: `M900 R0.0458` to set the ratio directly.
641
+   *
640 642
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
641 643
    *
642 644
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

+ 4
- 2
Marlin/example_configurations/wt150/Configuration_adv.h View File

@@ -633,13 +633,15 @@
633 633
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
634 634
    * if the slicer is using variable widths or layer heights within one print!
635 635
    *
636
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
636
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
637 637
    *
638
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
638
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
639 639
    *   - W is the extrusion width in mm
640 640
    *   - H is the layer height in mm
641 641
    *   - D is the filament diameter in mm
642 642
    *
643
+   * Example: `M900 R0.0458` to set the ratio directly.
644
+   *
643 645
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
644 646
    *
645 647
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.

Loading…
Cancel
Save