safety heaters management during/after minTemp
This commit is contained in:
MRprusa3d 2019-01-02 18:25:41 +01:00 committed by PavelSindler
parent a8e8a30dee
commit 0ff4af9b52
2 changed files with 7 additions and 17 deletions

View File

@ -1,21 +1,6 @@
/* -*- c++ -*- */
/*
Reprap firmware based on Sprinter and grbl.
Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
/**
* @file
*/
/*
@ -6356,6 +6341,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

@ -572,6 +572,8 @@ void manage_heater()
else {
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)
@ -693,6 +695,8 @@ void manage_heater()
WRITE(HEATER_BED_PIN,LOW);
}
#endif
if(target_temperature_bed==0)
soft_pwm_bed = 0;
#endif
//code for controlling the extruder rate based on the width sensor