I'm using 1.0.3 library
Situation:
when #include <thermistor.h>
Real Temp: 31.23 °C
Using line: thermistor.read();
Expected behavior: return 31.23
Actual behavior : return 312
Problem
-- thermistor.cpp
line 76 : int THERMISTOR::read(void)
line 127 : return (int)(steinhart * 10);
-- thermistor.h
line 77 : int read(void);
My Fix
-- thermistor.cpp
line 76 : float THERMISTOR::read(void)
line 127 : return (float)(steinhart);
-- thermistor.h
line 77 : float read(void);
I'm using 1.0.3 library
Situation:
when #include <thermistor.h>
Expected behavior: return 31.23
Actual behavior : return 312
Problem
-- thermistor.cpp
-- thermistor.h
My Fix
-- thermistor.cpp
-- thermistor.h