* 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 */
| 40 | * S - Wait only for heating |
| 41 | */ |
| 42 | void 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 |
nothing calls this directly
no test coverage detected