Ver código fonte

Fix PID autotune timeout (#18352)

Giuliano Zaro 4 anos atrás
pai
commit
88e4dffe88
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1
    1
      Marlin/src/module/temperature.cpp

+ 1
- 1
Marlin/src/module/temperature.cpp Ver arquivo

@@ -568,7 +568,7 @@ volatile bool Temperature::raw_temps_ready = false;
568 568
       #ifndef MAX_CYCLE_TIME_PID_AUTOTUNE
569 569
         #define MAX_CYCLE_TIME_PID_AUTOTUNE 20L
570 570
       #endif
571
-      if (((ms - t1) + (ms - t2)) > (MAX_CYCLE_TIME_PID_AUTOTUNE * 60L * 1000L)) {
571
+      if ((ms - _MIN(t1, t2)) > (MAX_CYCLE_TIME_PID_AUTOTUNE * 60L * 1000L)) {
572 572
         TERN_(DWIN_CREALITY_LCD, Popup_Window_Temperature(0));
573 573
         TERN_(EXTENSIBLE_UI, ExtUI::onPidTuning(ExtUI::result_t::PID_TUNING_TIMEOUT));
574 574
         SERIAL_ECHOLNPGM(STR_PID_TIMEOUT);

Carregando…
Cancelar
Salvar