Browse Source

🩹 Fix MAX31865 approximations

Followup to #24407
FB4S_WIFI
Scott Lahteine 2 years ago
parent
commit
06c1409843
  1. 6
      Marlin/src/libs/MAX31865.cpp

6
Marlin/src/libs/MAX31865.cpp

@ -489,9 +489,9 @@ float MAX31865::temperature(float rtd_res) {
temp = RTD_C[0]; temp = RTD_C[0];
temp += rpoly * RTD_C[1]; temp += rpoly * RTD_C[1];
rpoly *= rtd_res; temp += rpoly * RTD_C[2]; rpoly *= rtd_res; temp += rpoly * RTD_C[2];
if (MAX31865_APPROX >= 3) rpoly *= rtd_res; temp += rpoly * RTD_C[3]; if (MAX31865_APPROX >= 3) { rpoly *= rtd_res; temp += rpoly * RTD_C[3]; }
if (MAX31865_APPROX >= 4) rpoly *= rtd_res; temp += rpoly * RTD_C[4]; if (MAX31865_APPROX >= 4) { rpoly *= rtd_res; temp += rpoly * RTD_C[4]; }
if (MAX31865_APPROX >= 5) rpoly *= rtd_res; temp += rpoly * RTD_C[5]; if (MAX31865_APPROX >= 5) { rpoly *= rtd_res; temp += rpoly * RTD_C[5]; }
} }
return temp; return temp;

Loading…
Cancel
Save