Skip to content

Commit ac1eb7f

Browse files
committed
Adjust error code values for disconnected sensor
The existing values are within the operating range of the MAX31850.
1 parent 0d01352 commit ac1eb7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

DallasTemperature.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
#define DS18S20MODEL 0x10 // also DS1820
3030
#define DS18B20MODEL 0x28 // also MAX31820
3131
#define DS1822MODEL 0x22
32-
#define DS1825MODEL 0x3B
32+
#define DS1825MODEL 0x3B // also MAX31850
3333
#define DS28EA00MODEL 0x42
3434

3535
// Error Codes
36-
#define DEVICE_DISCONNECTED_C -127
37-
#define DEVICE_DISCONNECTED_F -196.6
38-
#define DEVICE_DISCONNECTED_RAW -7040
36+
#define DEVICE_DISCONNECTED_C -255
37+
#define DEVICE_DISCONNECTED_F -427
38+
#define DEVICE_DISCONNECTED_RAW -32640
3939

4040
// For readPowerSupply on oneWire bus
4141
// definition of nullptr for C++ < 11, using official workaround:

0 commit comments

Comments
 (0)