Check that the temperature is close to target

This commit is contained in:
Scott Lahteine 2016-02-27 22:26:44 -08:00
parent ea9fd1200b
commit ef68c1910c

View file

@ -3960,8 +3960,8 @@ inline void gcode_M109() {
// Loop until the temperature has stabilized
#define TEMP_CONDITIONS (residency_start_ms < 0 || now < residency_start_ms + TEMP_RESIDENCY_TIME * 1000UL)
#else
// Loop until the temperature is exactly on target
#define TEMP_CONDITIONS (degHotend(target_extruder) != degTargetHotend(target_extruder))
// Loop until the temperature is very close target
#define TEMP_CONDITIONS (fabs(degHotend(target_extruder) - degTargetHotend(target_extruder)) < 0.75f)
#endif //TEMP_RESIDENCY_TIME
cancel_heatup = false;
@ -3984,7 +3984,7 @@ inline void gcode_M109() {
}
#else
SERIAL_EOL;
#endif
#endif //TEMP_RESIDENCY_TIME
}
idle();