1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-23 11:43:47 +00:00

Better choice of code

Followup to #19344
This commit is contained in:
Scott Lahteine 2020-09-11 23:05:27 -05:00
parent 979876e958
commit cd85fa3abe
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -253,7 +253,7 @@
* M868 - Report or set position encoder module error correction threshold.
* M869 - Report position encoder module error.
* M871 - Print/reset/clear first layer temperature offset values. (Requires PROBE_TEMP_COMPENSATION)
* M872 - Wait for probe temp (Requires PROBE_TEMP_COMPENSATION)
* M192 - Wait for probe temp (Requires PROBE_TEMP_COMPENSATION)
* M876 - Handle Prompt Response. (Requires HOST_PROMPT_SUPPORT and not EMERGENCY_PARSER)
* M900 - Get or Set Linear Advance K-factor. (Requires LIN_ADVANCE)
* 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:
#endif
#if ENABLED(PROBE_TEMP_COMPENSATION)
static void M192();
static void M871();
static void M872();
#endif
TERN_(LIN_ADVANCE, static void M900());