Merge pull request #4033 from gudnimg/improve-preheat-target

preheat: improve target temperature threshold
This commit is contained in:
3d-gussner 2023-03-03 14:41:58 +01:00 committed by GitHub
commit 474d489c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -11424,7 +11424,7 @@ void M600_wait_for_user(float HotendTempBckp) {
}
break;
case 2: //waiting for nozzle to reach target temperature
if (fabs(degTargetHotend(active_extruder) - degHotend(active_extruder)) < 1) {
if (fabs(degTargetHotend(active_extruder) - degHotend(active_extruder)) < TEMP_HYSTERESIS) {
lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
waiting_start_time = _millis();
wait_for_user_state = 0;

View File

@ -1888,7 +1888,7 @@ void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
lcd_timeoutToStatus.stop();
if (current_temperature[0] > (target_temperature[0] * 0.95))
if (abs((int)current_temperature[0] - nTemp) > TEMP_HYSTERESIS)
{
switch (eFilamentAction)
{
@ -3772,7 +3772,7 @@ static void wait_preheat()
plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 60);
delay_keep_alive(2000);
lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
while (fabs(degHotend(0) - degTargetHotend(0)) > 3) {
while (fabs(degHotend(0) - degTargetHotend(0)) > TEMP_HYSTERESIS) {
lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
lcd_set_cursor(0, 4);