Marco Zecchini
/
example-ttn-workshop
example for iot course
Diff: DummySensor.h
- Revision:
- 26:f07f5febf97f
- Parent:
- 0:7037ed05f54f
- Child:
- 46:a124538e2891
--- a/DummySensor.h Tue Jun 19 14:15:24 2018 +0100 +++ b/DummySensor.h Thu Jun 28 12:45:20 2018 +0100 @@ -24,11 +24,11 @@ class DS1820 { public: - DS1820(uint32_t) { value = 1.0; }; + DS1820(uint32_t) { value = 1.0f; }; bool begin() { return true; }; void startConversion() {}; float read() { - value += 1.1; + value += 1.1f; return value; }