* Turn off heaters and stop the print in progress * After a stop the machine may be resumed with M999 */
| 968 | * After a stop the machine may be resumed with M999 |
| 969 | */ |
| 970 | void stop() { |
| 971 | thermalManager.disable_all_heaters(); // 'unpause' taken care of in here |
| 972 | |
| 973 | print_job_timer.stop(); |
| 974 | |
| 975 | #if ANY(PROBING_FANS_OFF, ADVANCED_PAUSE_FANS_PAUSE) |
| 976 | thermalManager.set_fans_paused(false); // Un-pause fans for safety |
| 977 | #endif |
| 978 | |
| 979 | if (!IsStopped()) { |
| 980 | SERIAL_ERROR_MSG(STR_ERR_STOPPED); |
| 981 | LCD_MESSAGE(MSG_STOPPED); |
| 982 | safe_delay(350); // allow enough time for messages to get out before stopping |
| 983 | marlin_state = MarlinState::MF_STOPPED; |
| 984 | } |
| 985 | } // stop() |
| 986 | |
| 987 | inline void tmc_standby_setup() { |
| 988 | #if PIN_EXISTS(X_STDBY) |
no test coverage detected