Browse Source

[2.0.x] Limit PID autotune target to maxtemp-15 (#12691)

Roman Moravčík 6 years ago
parent
commit
4dad489a50
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      Marlin/src/module/temperature.cpp

+ 5
- 0
Marlin/src/module/temperature.cpp View File

286
       next_auto_fan_check_ms = next_temp_ms + 2500UL;
286
       next_auto_fan_check_ms = next_temp_ms + 2500UL;
287
     #endif
287
     #endif
288
 
288
 
289
+    if (target > GHV(BED_MAXTEMP, maxttemp[heater]) - 15)) {
290
+      SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
291
+      return;
292
+    }
293
+
289
     SERIAL_ECHOLNPGM(MSG_PID_AUTOTUNE_START);
294
     SERIAL_ECHOLNPGM(MSG_PID_AUTOTUNE_START);
290
 
295
 
291
     disable_all_heaters();
296
     disable_all_heaters();

Loading…
Cancel
Save