Skip to content

Commit 5b3441b

Browse files
committed
Fix AMBIENT_RAW_*_TEMP define names
The max/min temperature check were incorrectly using HEATER_AMBIENT_RAW_*_TEMP (non-existing) instead of the correct AMBIENT_RAW_*_TEMP (this is not a heater afterall). This doesn't change the current behavior, since the check defaulted to the correct path for the MK3+ configuration anyway.
1 parent e3f48ea commit 5b3441b

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)