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

Function stop

Marlin/src/MarlinCore.cpp:970–985  ·  view source on GitHub ↗

* Turn off heaters and stop the print in progress * After a stop the machine may be resumed with M999 */

Source from the content-addressed store, hash-verified

968 * After a stop the machine may be resumed with M999
969 */
970void 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
987inline void tmc_standby_setup() {
988 #if PIN_EXISTS(X_STDBY)

Callers 10

probe_error_stopMethod · 0.85
set_deployedMethod · 0.85
_stopMethod · 0.85
CommandProcessorClass · 0.85
wait_ackMethod · 0.85
readOneByteMethod · 0.85
writeOneByteMethod · 0.85
abortMethod · 0.85
powerCycleMethod · 0.85
checkUserInputMethod · 0.85

Calls 5

IsStoppedFunction · 0.85
safe_delayFunction · 0.85
disable_all_heatersMethod · 0.80
set_fans_pausedMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected