We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe5fa73 commit d7f5470Copy full SHA for d7f5470
Marlin/src/libs/MAX31865.cpp
@@ -489,9 +489,9 @@ float MAX31865::temperature(float rtd_res) {
489
temp = RTD_C[0];
490
temp += rpoly * RTD_C[1];
491
rpoly *= rtd_res; temp += rpoly * RTD_C[2];
492
- if (MAX31865_APPROX >= 3) rpoly *= rtd_res; temp += rpoly * RTD_C[3];
493
- if (MAX31865_APPROX >= 4) rpoly *= rtd_res; temp += rpoly * RTD_C[4];
494
- if (MAX31865_APPROX >= 5) rpoly *= rtd_res; temp += rpoly * RTD_C[5];
+ 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 >= 5) { rpoly *= rtd_res; temp += rpoly * RTD_C[5]; }
495
}
496
497
return temp;
0 commit comments