-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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);
Metadata
Metadata
Assignees
Labels
No labels