library for AMS ENS210 temperature and humidity sensor
Dependents: rIoTwear-temp-humid
Diff: AMS_ENS210.h
- Revision:
- 1:94a79c88c105
- Parent:
- 0:7088b1bdc2e5
- Child:
- 3:3b427231e5a7
diff -r 7088b1bdc2e5 -r 94a79c88c105 AMS_ENS210.h --- a/AMS_ENS210.h Tue Jan 17 14:23:13 2017 +0000 +++ b/AMS_ENS210.h Tue Jan 17 14:26:34 2017 +0000 @@ -185,9 +185,9 @@ bool _temp_mode; bool _humid_mode; bool _power_mode; - bool _reset; - uint16_t temp_reading; - uint16_t humid_reading; + bool _reset = 0; + uint16_t temp_reading = 0; + uint16_t humid_reading = 0; bool write_config(bool system = true, bool sensor = true); const char * read_config(bool system = true, bool sensor = true);