MCPcopy Create free account
hub / github.com/MarlinFirmware/Marlin / M192

Method M192

Marlin/src/gcode/temp/M192.cpp:42–54  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

40 * S - Wait only for heating
41 */
42void GcodeSuite::M192() {
43 if (DEBUGGING(DRYRUN)) return;
44
45 const bool no_wait_for_cooling = parser.seenval('S');
46 if (!no_wait_for_cooling && !parser.seenval('R')) {
47 SERIAL_ERROR_MSG("No target temperature set.");
48 return;
49 }
50
51 const celsius_t target_temp = parser.value_celsius();
52 thermalManager.isProbeBelowTemp(target_temp) ? LCD_MESSAGE(MSG_PROBE_HEATING) : LCD_MESSAGE(MSG_PROBE_COOLING);
53 thermalManager.wait_for_probe(target_temp, no_wait_for_cooling);
54}
55
56#endif // HAS_TEMP_PROBE

Callers

nothing calls this directly

Calls 4

seenvalMethod · 0.80
value_celsiusMethod · 0.80
isProbeBelowTempMethod · 0.80
wait_for_probeMethod · 0.80

Tested by

no test coverage detected