|
@@ -1436,7 +1436,7 @@ void Temperature::init() {
|
1436
|
1436
|
#if HOTENDS == 1
|
1437
|
1437
|
UNUSED(e);
|
1438
|
1438
|
#endif
|
1439
|
|
- if (degHotend(HOTEND_INDEX) < degTargetHotend(HOTEND_INDEX) - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) {
|
|
1439
|
+ if (degTargetHotend(HOTEND_INDEX) && degHotend(HOTEND_INDEX) < degTargetHotend(HOTEND_INDEX) - (WATCH_TEMP_INCREASE + TEMP_HYSTERESIS + 1)) {
|
1440
|
1440
|
watch_target_temp[HOTEND_INDEX] = degHotend(HOTEND_INDEX) + WATCH_TEMP_INCREASE;
|
1441
|
1441
|
watch_heater_next_ms[HOTEND_INDEX] = millis() + (WATCH_TEMP_PERIOD) * 1000UL;
|
1442
|
1442
|
}
|
|
@@ -1452,7 +1452,7 @@ void Temperature::init() {
|
1452
|
1452
|
* This is called when the temperature is set. (M140, M190)
|
1453
|
1453
|
*/
|
1454
|
1454
|
void Temperature::start_watching_bed() {
|
1455
|
|
- if (degBed() < degTargetBed() - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1)) {
|
|
1455
|
+ if (degTargetBed() && degBed() < degTargetBed() - (WATCH_BED_TEMP_INCREASE + TEMP_BED_HYSTERESIS + 1)) {
|
1456
|
1456
|
watch_target_bed_temp = degBed() + WATCH_BED_TEMP_INCREASE;
|
1457
|
1457
|
watch_bed_next_ms = millis() + (WATCH_BED_TEMP_PERIOD) * 1000UL;
|
1458
|
1458
|
}
|