From a00ae4790af49fad175219e077acd4cc83ec4fba Mon Sep 17 00:00:00 2001
From: Scott Lahteine <sourcetree@thinkyhead.com>
Date: Mon, 17 Apr 2017 00:27:49 -0500
Subject: [PATCH] Replace M905 with unique code M900

---
 Marlin/Configuration_adv.h                                | 6 ++++--
 Marlin/Marlin_main.cpp                                    | 8 ++++----
 Marlin/configuration_store.cpp                            | 6 +++---
 .../example_configurations/Cartesio/Configuration_adv.h   | 6 ++++--
 Marlin/example_configurations/Felix/Configuration_adv.h   | 6 ++++--
 .../example_configurations/Hephestos/Configuration_adv.h  | 6 ++++--
 .../Hephestos_2/Configuration_adv.h                       | 6 ++++--
 Marlin/example_configurations/K8200/Configuration_adv.h   | 6 ++++--
 Marlin/example_configurations/K8400/Configuration_adv.h   | 6 ++++--
 .../example_configurations/RigidBot/Configuration_adv.h   | 6 ++++--
 Marlin/example_configurations/SCARA/Configuration_adv.h   | 6 ++++--
 Marlin/example_configurations/TAZ4/Configuration_adv.h    | 6 ++++--
 .../example_configurations/TinyBoy2/Configuration_adv.h   | 6 ++++--
 Marlin/example_configurations/WITBOX/Configuration_adv.h  | 6 ++++--
 .../delta/FLSUN/auto_calibrate/Configuration_adv.h        | 6 ++++--
 .../delta/FLSUN/kossel_mini/Configuration_adv.h           | 6 ++++--
 .../delta/generic/Configuration_adv.h                     | 6 ++++--
 .../delta/kossel_mini/Configuration_adv.h                 | 6 ++++--
 .../delta/kossel_pro/Configuration_adv.h                  | 6 ++++--
 .../delta/kossel_xl/Configuration_adv.h                   | 6 ++++--
 Marlin/example_configurations/makibox/Configuration_adv.h | 6 ++++--
 .../tvrrug/Round2/Configuration_adv.h                     | 6 ++++--
 Marlin/example_configurations/wt150/Configuration_adv.h   | 6 ++++--
 23 files changed, 91 insertions(+), 49 deletions(-)

diff --git a/Marlin/Configuration_adv.h b/Marlin/Configuration_adv.h
index adfb03ccfa..30e40fbffb 100644
--- a/Marlin/Configuration_adv.h
+++ b/Marlin/Configuration_adv.h
@@ -633,13 +633,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/Marlin_main.cpp b/Marlin/Marlin_main.cpp
index 748646596d..719edd51a7 100644
--- a/Marlin/Marlin_main.cpp
+++ b/Marlin/Marlin_main.cpp
@@ -8797,13 +8797,13 @@ inline void gcode_M503() {
 
 #if ENABLED(LIN_ADVANCE)
   /**
-   * M905: Set and/or Get advance K factor and WH/D ratio
+   * M900: Set and/or Get advance K factor and WH/D ratio
    *
    *  K<factor>                  Set advance K factor
    *  R<ratio>                   Set ratio directly (overrides WH/D)
    *  W<width> H<height> D<diam> Set ratio from WH/D
    */
-  inline void gcode_M905() {
+  inline void gcode_M900() {
     stepper.synchronize();
 
     const float newK = code_seen('K') ? code_value_float() : -1;
@@ -10264,8 +10264,8 @@ void process_next_command() {
       #endif // DUAL_X_CARRIAGE
 
       #if ENABLED(LIN_ADVANCE)
-        case 905: // M905: Set advance K factor.
-          gcode_M905();
+        case 900: // M900: Set advance K factor.
+          gcode_M900();
           break;
       #endif
 
diff --git a/Marlin/configuration_store.cpp b/Marlin/configuration_store.cpp
index ced713b804..c87a15867c 100644
--- a/Marlin/configuration_store.cpp
+++ b/Marlin/configuration_store.cpp
@@ -150,8 +150,8 @@
  *  576  M906 E4   stepperE4 current                (uint16_t)
  *
  * LIN_ADVANCE:                                     8 bytes
- *  580  M905 K    extruder_advance_k               (float)
- *  584  M905 WHD  advance_ed_ratio                 (float)
+ *  580  M900 K    extruder_advance_k               (float)
+ *  584  M900 WHD  advance_ed_ratio                 (float)
  *
  *  588                                Minimum end-point
  * 1909 (588 + 36 + 9 + 288 + 988)     Maximum end-point
@@ -1665,7 +1665,7 @@ void MarlinSettings::reset() {
         SERIAL_ECHOLNPGM("Linear Advance:");
       }
       CONFIG_ECHO_START;
-      SERIAL_ECHOPAIR("  M905 K", planner.get_extruder_advance_k());
+      SERIAL_ECHOPAIR("  M900 K", planner.get_extruder_advance_k());
       SERIAL_ECHOLNPAIR(" R", planner.get_advance_ed_ratio());
     #endif
   }
diff --git a/Marlin/example_configurations/Cartesio/Configuration_adv.h b/Marlin/example_configurations/Cartesio/Configuration_adv.h
index 1e7a13c1ce..86826d36e3 100644
--- a/Marlin/example_configurations/Cartesio/Configuration_adv.h
+++ b/Marlin/example_configurations/Cartesio/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/Felix/Configuration_adv.h b/Marlin/example_configurations/Felix/Configuration_adv.h
index fef4bf0a5e..c7b37ce911 100644
--- a/Marlin/example_configurations/Felix/Configuration_adv.h
+++ b/Marlin/example_configurations/Felix/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/Hephestos/Configuration_adv.h b/Marlin/example_configurations/Hephestos/Configuration_adv.h
index 43ea5654e3..45206ef5fd 100644
--- a/Marlin/example_configurations/Hephestos/Configuration_adv.h
+++ b/Marlin/example_configurations/Hephestos/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/Hephestos_2/Configuration_adv.h b/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
index 7001e573c0..19ef14cb5c 100644
--- a/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
+++ b/Marlin/example_configurations/Hephestos_2/Configuration_adv.h
@@ -614,13 +614,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/K8200/Configuration_adv.h b/Marlin/example_configurations/K8200/Configuration_adv.h
index a3ee7f353f..d87896b02a 100644
--- a/Marlin/example_configurations/K8200/Configuration_adv.h
+++ b/Marlin/example_configurations/K8200/Configuration_adv.h
@@ -643,13 +643,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/K8400/Configuration_adv.h b/Marlin/example_configurations/K8400/Configuration_adv.h
index f76fa256e9..509ee750d2 100644
--- a/Marlin/example_configurations/K8400/Configuration_adv.h
+++ b/Marlin/example_configurations/K8400/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/RigidBot/Configuration_adv.h b/Marlin/example_configurations/RigidBot/Configuration_adv.h
index 7a5be5249a..05d5c3750a 100644
--- a/Marlin/example_configurations/RigidBot/Configuration_adv.h
+++ b/Marlin/example_configurations/RigidBot/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/SCARA/Configuration_adv.h b/Marlin/example_configurations/SCARA/Configuration_adv.h
index 90e13e3654..220f0d79ee 100644
--- a/Marlin/example_configurations/SCARA/Configuration_adv.h
+++ b/Marlin/example_configurations/SCARA/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/TAZ4/Configuration_adv.h b/Marlin/example_configurations/TAZ4/Configuration_adv.h
index 9064526438..5134ff6b47 100644
--- a/Marlin/example_configurations/TAZ4/Configuration_adv.h
+++ b/Marlin/example_configurations/TAZ4/Configuration_adv.h
@@ -638,13 +638,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h
index 3fa4f0b055..9ed9943612 100644
--- a/Marlin/example_configurations/TinyBoy2/Configuration_adv.h
+++ b/Marlin/example_configurations/TinyBoy2/Configuration_adv.h
@@ -633,13 +633,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/WITBOX/Configuration_adv.h b/Marlin/example_configurations/WITBOX/Configuration_adv.h
index 43ea5654e3..45206ef5fd 100644
--- a/Marlin/example_configurations/WITBOX/Configuration_adv.h
+++ b/Marlin/example_configurations/WITBOX/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
index e2c7e024c9..220bfa4713 100644
--- a/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/FLSUN/auto_calibrate/Configuration_adv.h
@@ -654,13 +654,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
index 7d4a2c0c21..eed1171b9e 100644
--- a/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/FLSUN/kossel_mini/Configuration_adv.h
@@ -654,13 +654,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/generic/Configuration_adv.h b/Marlin/example_configurations/delta/generic/Configuration_adv.h
index ee2df57ebb..7de00f0806 100644
--- a/Marlin/example_configurations/delta/generic/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/generic/Configuration_adv.h
@@ -651,13 +651,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
index ee2df57ebb..7de00f0806 100644
--- a/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_mini/Configuration_adv.h
@@ -651,13 +651,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
index a57c2bf35e..40e7259edb 100644
--- a/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_pro/Configuration_adv.h
@@ -657,13 +657,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
index 08ba347da8..8268e42930 100644
--- a/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
+++ b/Marlin/example_configurations/delta/kossel_xl/Configuration_adv.h
@@ -651,13 +651,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/makibox/Configuration_adv.h b/Marlin/example_configurations/makibox/Configuration_adv.h
index fc5a716fa9..7f752213dc 100644
--- a/Marlin/example_configurations/makibox/Configuration_adv.h
+++ b/Marlin/example_configurations/makibox/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
index 78db8e1d53..cfb3fc2b46 100644
--- a/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
+++ b/Marlin/example_configurations/tvrrug/Round2/Configuration_adv.h
@@ -630,13 +630,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
diff --git a/Marlin/example_configurations/wt150/Configuration_adv.h b/Marlin/example_configurations/wt150/Configuration_adv.h
index ea7644e711..73c43f17f3 100644
--- a/Marlin/example_configurations/wt150/Configuration_adv.h
+++ b/Marlin/example_configurations/wt150/Configuration_adv.h
@@ -633,13 +633,15 @@
    * to a fixed value. Note that using a fixed ratio will lead to wrong nozzle pressures
    * if the slicer is using variable widths or layer heights within one print!
    *
-   * This option sets the default E:D ratio at startup. Use `M905` to override this value.
+   * This option sets the default E:D ratio at startup. Use `M900` to override this value.
    *
-   * Example: `M905 W0.4 H0.2 D1.75`, where:
+   * Example: `M900 W0.4 H0.2 D1.75`, where:
    *   - W is the extrusion width in mm
    *   - H is the layer height in mm
    *   - D is the filament diameter in mm
    *
+   * Example: `M900 R0.0458` to set the ratio directly.
+   *
    * Set to 0 to auto-detect the ratio based on given Gcode G1 print moves.
    *
    * Slic3r (including Prusa Slic3r) produces Gcode compatible with the automatic mode.
-- 
GitLab