Sfoglia il codice sorgente

Fix auto-power in PID autotune (#19119)

Giuliano Zaro 3 anni fa
parent
commit
f67ad6fd70
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      Marlin/src/module/temperature.cpp

+ 1
- 1
Marlin/src/module/temperature.cpp Vedi File

@@ -435,6 +435,7 @@ volatile bool Temperature::raw_temps_ready = false;
435 435
     SERIAL_ECHOLNPGM(STR_PID_AUTOTUNE_START);
436 436
 
437 437
     disable_all_heaters();
438
+    TERN_(AUTO_POWER_CONTROL, powerManager.power_on());
438 439
 
439 440
     SHV(bias = d = (MAX_BED_POWER) >> 1, bias = d = (PID_MAX) >> 1);
440 441
 
@@ -444,7 +445,6 @@ volatile bool Temperature::raw_temps_ready = false;
444 445
       LEDColor color = ONHEATINGSTART();
445 446
     #endif
446 447
 
447
-    TERN_(AUTO_POWER_CONTROL, powerManager.power_on());
448 448
     TERN_(NO_FAN_SLOWING_IN_PID_TUNING, adaptive_fan_slowing = false);
449 449
 
450 450
     // PID Tuning loop

Loading…
Annulla
Salva