浏览代码

Better choice of code

Followup to #19344
Scott Lahteine 4 年前
父节点
当前提交
cd85fa3abe
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 2
    2
      Marlin/src/gcode/calibrate/G76_M192_M871.cpp
  2. 1
    1
      Marlin/src/gcode/gcode.cpp
  3. 2
    2
      Marlin/src/gcode/gcode.h

Marlin/src/gcode/calibrate/G76_M871-M872.cpp → Marlin/src/gcode/calibrate/G76_M192_M871.cpp 查看文件

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
  * Select only one of these flags:
339
  * Select only one of these flags:
340
  *    R - Wait for heating or cooling
340
  *    R - Wait for heating or cooling
341
  *    S - Wait only for heating
341
  *    S - Wait only for heating
342
  */
342
  */
343
-void GcodeSuite::M872() {
343
+void GcodeSuite::M192() {
344
   if (DEBUGGING(DRYRUN)) return;
344
   if (DEBUGGING(DRYRUN)) return;
345
 
345
 
346
   const bool no_wait_for_cooling = parser.seenval('S');
346
   const bool no_wait_for_cooling = parser.seenval('S');

+ 1
- 1
Marlin/src/gcode/gcode.cpp 查看文件

818
       #endif
818
       #endif
819
 
819
 
820
       #if ENABLED(PROBE_TEMP_COMPENSATION)
820
       #if ENABLED(PROBE_TEMP_COMPENSATION)
821
+        case 192: M192(); break;                                  // M192: Wait for probe temp
821
         case 871: M871(); break;                                  // M871: Print/reset/clear first layer temperature offset values
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
       #endif
823
       #endif
824
 
824
 
825
       #if ENABLED(LIN_ADVANCE)
825
       #if ENABLED(LIN_ADVANCE)

+ 2
- 2
Marlin/src/gcode/gcode.h 查看文件

253
  * M868 - Report or set position encoder module error correction threshold.
253
  * M868 - Report or set position encoder module error correction threshold.
254
  * M869 - Report position encoder module error.
254
  * M869 - Report position encoder module error.
255
  * M871 - Print/reset/clear first layer temperature offset values. (Requires PROBE_TEMP_COMPENSATION)
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
  * M876 - Handle Prompt Response. (Requires HOST_PROMPT_SUPPORT and not EMERGENCY_PARSER)
257
  * M876 - Handle Prompt Response. (Requires HOST_PROMPT_SUPPORT and not EMERGENCY_PARSER)
258
  * M900 - Get or Set Linear Advance K-factor. (Requires LIN_ADVANCE)
258
  * M900 - Get or Set Linear Advance K-factor. (Requires LIN_ADVANCE)
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)
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
   #endif
822
   #endif
823
 
823
 
824
   #if ENABLED(PROBE_TEMP_COMPENSATION)
824
   #if ENABLED(PROBE_TEMP_COMPENSATION)
825
+    static void M192();
825
     static void M871();
826
     static void M871();
826
-    static void M872();
827
   #endif
827
   #endif
828
 
828
 
829
   TERN_(LIN_ADVANCE, static void M900());
829
   TERN_(LIN_ADVANCE, static void M900());

正在加载...
取消
保存