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();
if(Stopped == false) {
Stopped = true;
lcd_print_stop();
Stopped_gcode_LastN = gcode_LastN; // Save last g_code for restart
SERIAL_ERROR_START;
SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED);

View file

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