Sfoglia il codice sorgente

Better choice of code

Followup to #19344
Scott Lahteine 4 anni fa
parent
commit
cd85fa3abe

Marlin/src/gcode/calibrate/G76_M871-M872.cpp → Marlin/src/gcode/calibrate/G76_M192_M871.cpp Vedi File

@@ -334,13 +334,13 @@ void GcodeSuite::M871() {
334 334
 }
335 335
 
336 336
 /**
337
- * M872: Wait for probe temperature sensor to reach a target
337
+ * M192: Wait for probe temperature sensor to reach a target
338 338
  *
339 339
  * Select only one of these flags:
340 340
  *    R - Wait for heating or cooling
341 341
  *    S - Wait only for heating
342 342
  */
343
-void GcodeSuite::M872() {
343
+void GcodeSuite::M192() {
344 344
   if (DEBUGGING(DRYRUN)) return;
345 345
 
346 346
   const bool no_wait_for_cooling = parser.seenval('S');

+ 1
- 1
Marlin/src/gcode/gcode.cpp Vedi File

@@ -818,8 +818,8 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
818 818
       #endif
819 819
 
820 820
       #if ENABLED(PROBE_TEMP_COMPENSATION)
821
+        case 192: M192(); break;                                  // M192: Wait for probe temp
821 822
         case 871: M871(); break;                                  // M871: Print/reset/clear first layer temperature offset values
822
-        case 872: M872(); break;                                  // M872: Wait for probe temp
823 823
       #endif
824 824
 
825 825
       #if ENABLED(LIN_ADVANCE)

+ 2
- 2
Marlin/src/gcode/gcode.h Vedi File

@@ -253,7 +253,7 @@
253 253
  * M868 - Report or set position encoder module error correction threshold.
254 254
  * M869 - Report position encoder module error.
255 255
  * M871 - Print/reset/clear first layer temperature offset values. (Requires PROBE_TEMP_COMPENSATION)
256
- * M872 - Wait for probe temp (Requires PROBE_TEMP_COMPENSATION)
256
+ * M192 - Wait for probe temp (Requires PROBE_TEMP_COMPENSATION)
257 257
  * M876 - Handle Prompt Response. (Requires HOST_PROMPT_SUPPORT and not EMERGENCY_PARSER)
258 258
  * M900 - Get or Set Linear Advance K-factor. (Requires LIN_ADVANCE)
259 259
  * M906 - Set or get motor current in milliamps using axis codes X, Y, Z, E. Report values if no axis codes given. (Requires at least one _DRIVER_TYPE defined as TMC2130/2160/5130/5160/2208/2209/2660 or L6470)
@@ -822,8 +822,8 @@ private:
822 822
   #endif
823 823
 
824 824
   #if ENABLED(PROBE_TEMP_COMPENSATION)
825
+    static void M192();
825 826
     static void M871();
826
-    static void M872();
827 827
   #endif
828 828
 
829 829
   TERN_(LIN_ADVANCE, static void M900());

Loading…
Annulla
Salva