Skip to content

Commit 6115125

Browse files
authored
Merge pull request prusa3d#3485 from wavexx/ambient_raw_temps
Fix AMBIENT_RAW_*_TEMP define names
2 parents 96b9048 + 5b3441b commit 6115125

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Firmware/temperature.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1220,7 +1220,7 @@ void tp_init()
12201220

12211221
#ifdef AMBIENT_MINTEMP
12221222
while(analog2tempAmbient(ambient_minttemp_raw) < AMBIENT_MINTEMP) {
1223-
#if HEATER_AMBIENT_RAW_LO_TEMP < HEATER_AMBIENT_RAW_HI_TEMP
1223+
#if AMBIENT_RAW_LO_TEMP < AMBIENT_RAW_HI_TEMP
12241224
ambient_minttemp_raw += OVERSAMPLENR;
12251225
#else
12261226
ambient_minttemp_raw -= OVERSAMPLENR;
@@ -1229,7 +1229,7 @@ void tp_init()
12291229
#endif //AMBIENT_MINTEMP
12301230
#ifdef AMBIENT_MAXTEMP
12311231
while(analog2tempAmbient(ambient_maxttemp_raw) > AMBIENT_MAXTEMP) {
1232-
#if HEATER_AMBIENT_RAW_LO_TEMP < HEATER_AMBIENT_RAW_HI_TEMP
1232+
#if AMBIENT_RAW_LO_TEMP < AMBIENT_RAW_HI_TEMP
12331233
ambient_maxttemp_raw -= OVERSAMPLENR;
12341234
#else
12351235
ambient_maxttemp_raw += OVERSAMPLENR;

0 commit comments

Comments
 (0)