From ac1eb7f56e3894e855edc3353be4bde4aa838d41 Mon Sep 17 00:00:00 2001 From: Karl G Date: Sun, 27 Dec 2020 18:23:45 -0500 Subject: [PATCH] Adjust error code values for disconnected sensor The existing values are within the operating range of the MAX31850. --- DallasTemperature.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DallasTemperature.h b/DallasTemperature.h index 45176bc..824a581 100644 --- a/DallasTemperature.h +++ b/DallasTemperature.h @@ -29,13 +29,13 @@ #define DS18S20MODEL 0x10 // also DS1820 #define DS18B20MODEL 0x28 // also MAX31820 #define DS1822MODEL 0x22 -#define DS1825MODEL 0x3B +#define DS1825MODEL 0x3B // also MAX31850 #define DS28EA00MODEL 0x42 // Error Codes -#define DEVICE_DISCONNECTED_C -127 -#define DEVICE_DISCONNECTED_F -196.6 -#define DEVICE_DISCONNECTED_RAW -7040 +#define DEVICE_DISCONNECTED_C -255 +#define DEVICE_DISCONNECTED_F -427 +#define DEVICE_DISCONNECTED_RAW -32640 // For readPowerSupply on oneWire bus // definition of nullptr for C++ < 11, using official workaround: