C code and C++ library, driver software for Maxim Integrated DS1775, DS75 thermometer and thermostat temperature sensor. Code supports continuous or shut-down/standby, hysteresis, alarm limits, comparator or interrupt mode, fault filtering, and active low/high. Compact 5-pin SOT23 packaging
Dependents: DS1775_Digital_Thermostat_Temperature
Diff: ds1775_cpp.cpp
- Revision:
- 11:c3367936f4f2
- Parent:
- 10:03645de9c017
- Child:
- 12:3ca79cd71289
--- a/ds1775_cpp.cpp Sun Apr 07 09:40:00 2019 +0000 +++ b/ds1775_cpp.cpp Sun Apr 07 09:55:29 2019 +0000 @@ -88,7 +88,8 @@ ds1775_raw_data tmp; if (reg == DS1775_REG_TEMPERATURE || - (reg >= DS1775_REG_THYST_LOW_TRIP && reg <= DS1775_REG_MAX)) { + (reg == DS1775_REG_THYST_LOW_TRIP || + reg == DS1775_REG_TOS_HIGH_TRIP)) { /* write to the Register Select, true is for repeated start */ ret = m_i2c.write(m_write_address, ®, 1, true); /* read the two bytes of data */