safety heaters management during/after minTemp
This commit is contained in:
MRprusa3d 2019-01-02 18:25:41 +01:00
parent 83a9f75abe
commit 4e300fd552
2 changed files with 5 additions and 0 deletions

View File

@ -7579,6 +7579,7 @@ void Stop()
disable_heater(); disable_heater();
if(Stopped == false) { if(Stopped == false) {
Stopped = true; Stopped = true;
lcd_print_stop();
Stopped_gcode_LastN = gcode_LastN; // Save last g_code for restart Stopped_gcode_LastN = gcode_LastN; // Save last g_code for restart
SERIAL_ERROR_START; SERIAL_ERROR_START;
SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED); SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED);

View File

@ -685,6 +685,8 @@ void manage_heater()
{ {
soft_pwm[e] = 0; soft_pwm[e] = 0;
} }
if(target_temperature[e]==0)
soft_pwm[e] = 0;
#ifdef WATCH_TEMP_PERIOD #ifdef WATCH_TEMP_PERIOD
if(watchmillis[e] && millis() - watchmillis[e] > WATCH_TEMP_PERIOD) if(watchmillis[e] && millis() - watchmillis[e] > WATCH_TEMP_PERIOD)
@ -812,6 +814,8 @@ void manage_heater()
WRITE(HEATER_BED_PIN,LOW); WRITE(HEATER_BED_PIN,LOW);
} }
#endif #endif
if(target_temperature_bed==0)
soft_pwm_bed = 0;
#endif #endif
#ifdef HOST_KEEPALIVE_FEATURE #ifdef HOST_KEEPALIVE_FEATURE