Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Servo Cayenne-LPP
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;
     }