JChristensen / DS3232RTC

Arduino Library for Maxim Integrated DS3232 and DS3231 Real-Time Clocks
GNU General Public License v3.0
392 stars 135 forks source link

Wrong temperature value. #57

Closed cotestatnt closed 6 years ago

cotestatnt commented 6 years ago

The value returned from function int DS3232RTC::temperature() is wrong. If i run this instruction for example, Serial.println(RTC.temperature()) the function return an int value of about 113°C with a real temperature of 28°C. Furthermore, the value returned should be a Float and not an Int (the RTC is able to read temperature with a resolution of 0.25°C).

JChristensen commented 6 years ago

Working as designed. See https://github.com/JChristensen/DS3232RTC#returns-14