Sfoglia il codice sorgente

fixed wrong compare for min temp check of heater 1 and heater 2

MaikStohn 12 anni fa
parent
commit
95dff34b73
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      Marlin/temperature.cpp

+ 2
- 2
Marlin/temperature.cpp Vedi File

@@ -695,7 +695,7 @@ void tp_init()
695 695
 
696 696
 #if (EXTRUDERS > 1) && defined(HEATER_1_MINTEMP)
697 697
   minttemp[1] = HEATER_1_MINTEMP;
698
-  while(analog2temp(minttemp_raw[1], 1) > HEATER_1_MINTEMP) {
698
+  while(analog2temp(minttemp_raw[1], 1) < HEATER_1_MINTEMP) {
699 699
 #if HEATER_1_RAW_LO_TEMP < HEATER_1_RAW_HI_TEMP
700 700
     minttemp_raw[1] += OVERSAMPLENR;
701 701
 #else
@@ -716,7 +716,7 @@ void tp_init()
716 716
 
717 717
 #if (EXTRUDERS > 2) && defined(HEATER_2_MINTEMP)
718 718
   minttemp[2] = HEATER_2_MINTEMP;
719
-  while(analog2temp(minttemp_raw[2], 2) > HEATER_2_MINTEMP) {
719
+  while(analog2temp(minttemp_raw[2], 2) < HEATER_2_MINTEMP) {
720 720
 #if HEATER_2_RAW_LO_TEMP < HEATER_2_RAW_HI_TEMP
721 721
     minttemp_raw[2] += OVERSAMPLENR;
722 722
 #else

Loading…
Annulla
Salva