![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
sku sku backup askip
Dependencies: Servo Cayenne-LPP driver_mbed_TH02
Diff: DummySensor.h
- Revision:
- 56:39847849d219
- Parent:
- 46:a124538e2891
diff -r 6f2e16ebde99 -r 39847849d219 DummySensor.h --- a/DummySensor.h Tue Aug 20 15:01:49 2019 +0100 +++ b/DummySensor.h Wed Aug 21 07:01:49 2019 +0100 @@ -25,21 +25,21 @@ public: DS1820(uint32_t) { - value = 1.0f; + value = 1; }; bool begin() { return true; }; void startConversion() {}; - float read() + int32_t read() { - value += 1.1f; + value += 2; return value; } private: - float value; + int32_t value; };