Skip to content

Commit 667bb15

Browse files
committed
Renaming coldTempTomv to tempTomv
1 parent f243a01 commit 667bb15

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/utility/THERMOCOUPLE/MAX31855.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ double MAX31855Class::polynomial(double value, int tableEntries, coefftable cons
9494
return NAN;
9595
}
9696

97-
double MAX31855Class::coldTempTomv(double temp) {
97+
double MAX31855Class::tempTomv(double temp) {
9898
coefftable const (*table);
9999
int tableEntries;
100100
double voltage;
@@ -188,7 +188,7 @@ float MAX31855Class::readTCTemperature() {
188188
// this way we calculate the voltage we would have measured if cold junction
189189
// was at 0 degrees celsius
190190

191-
measuredVolt = coldTempTomv(measuredCold - _coldOffset) + (measuredTemp - measuredCold) * 0.041276f;
191+
measuredVolt = tempTomv(measuredCold - _coldOffset) + (measuredTemp - measuredCold) * 0.041276f;
192192

193193
// finally from the cold junction compensated voltage we calculate the temperature
194194
// using NIST polynomial approximation for the thermocouple type we are using

src/utility/THERMOCOUPLE/MAX31855.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class MAX31855Class {
113113
};
114114

115115
double mvtoTemp(double voltage);
116-
double coldTempTomv(double temp);
116+
double tempTomv(double temp);
117117
double polynomial(double value, int tableEntries, coefftable const (*table));
118118

119119
};

0 commit comments

Comments
 (0)