Browse Source

Fix compile errors & temp range

Giuliano Zaro 5 years ago
parent
commit
43aba9f918
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/module/temperature.cpp

+ 3
- 3
Marlin/src/module/temperature.cpp View File

389
       next_auto_fan_check_ms = next_temp_ms + 2500UL;
389
       next_auto_fan_check_ms = next_temp_ms + 2500UL;
390
     #endif
390
     #endif
391
 
391
 
392
-    if (target > GHV(BED_MAXTEMP, temp_range[heater].maxtemp) - 15) {
392
+    if (target > GHV(BED_MAXTEMP - 10, temp_range[heater].maxtemp - 15)) {
393
       SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
393
       SERIAL_ECHOLNPGM(MSG_PID_TEMP_TOO_HIGH);
394
       return;
394
       return;
395
     }
395
     }
857
             #if HOTENDS == 1
857
             #if HOTENDS == 1
858
               constexpr bool this_hotend = true;
858
               constexpr bool this_hotend = true;
859
             #else
859
             #else
860
-              const bool this_hotend = (e == active_extruder);
860
+              const bool this_hotend = (ee == active_extruder);
861
             #endif
861
             #endif
862
             work_pid[ee].Kc = 0;
862
             work_pid[ee].Kc = 0;
863
             if (this_hotend) {
863
             if (this_hotend) {
886
       #endif // PID_OPENLOOP
886
       #endif // PID_OPENLOOP
887
 
887
 
888
       #if ENABLED(PID_DEBUG)
888
       #if ENABLED(PID_DEBUG)
889
-        if (e == active_extruder) {
889
+        if (ee == active_extruder) {
890
           SERIAL_ECHO_START();
890
           SERIAL_ECHO_START();
891
           SERIAL_ECHOPAIR(
891
           SERIAL_ECHOPAIR(
892
             MSG_PID_DEBUG, ee,
892
             MSG_PID_DEBUG, ee,

Loading…
Cancel
Save