Browse Source

Check that the temperature is close to target

Scott Lahteine 8 years ago
parent
commit
ef68c1910c
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/Marlin_main.cpp

+ 3
- 3
Marlin/Marlin_main.cpp View File

3960
     // Loop until the temperature has stabilized
3960
     // Loop until the temperature has stabilized
3961
     #define TEMP_CONDITIONS (residency_start_ms < 0 || now < residency_start_ms + TEMP_RESIDENCY_TIME * 1000UL)
3961
     #define TEMP_CONDITIONS (residency_start_ms < 0 || now < residency_start_ms + TEMP_RESIDENCY_TIME * 1000UL)
3962
   #else
3962
   #else
3963
-    // Loop until the temperature is exactly on target
3964
-    #define TEMP_CONDITIONS (degHotend(target_extruder) != degTargetHotend(target_extruder))
3963
+    // Loop until the temperature is very close target
3964
+    #define TEMP_CONDITIONS (fabs(degHotend(target_extruder) - degTargetHotend(target_extruder)) < 0.75f)
3965
   #endif //TEMP_RESIDENCY_TIME
3965
   #endif //TEMP_RESIDENCY_TIME
3966
 
3966
 
3967
   cancel_heatup = false;
3967
   cancel_heatup = false;
3984
         }
3984
         }
3985
       #else
3985
       #else
3986
         SERIAL_EOL;
3986
         SERIAL_EOL;
3987
-      #endif
3987
+      #endif //TEMP_RESIDENCY_TIME
3988
     }
3988
     }
3989
 
3989
 
3990
     idle();
3990
     idle();

Loading…
Cancel
Save