We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6449441 commit e916c9cCopy full SHA for e916c9c
src/utility/THERMOCOUPLE/MAX31855.cpp
@@ -208,7 +208,7 @@ float MAX31855Class::readReferenceTemperature(int type)
208
209
// The cold junction reference temperature is stored in the first 11 word's bits
210
// sent by the Thermocouple-to-Digital Converter
211
- rawword = rawword & 0x7FF;
+ rawword = rawword & 0xFFF;
212
// check sign bit and convert to negative value.
213
if (rawword & 0x800) {
214
ref = (0xF800 | (rawword & 0x7FF))*0.0625;
0 commit comments