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.
Diff: DummySensor.h
- Revision:
- 46:a124538e2891
- Parent:
- 26:f07f5febf97f
- Child:
- 56:39847849d219
--- a/DummySensor.h Thu Jan 03 15:30:32 2019 +0000
+++ b/DummySensor.h Thu Jan 10 12:15:30 2019 +0000
@@ -21,13 +21,19 @@
/*
* A dummy sensor for Mbed LoRa Test Application
*/
-class DS1820
-{
+class DS1820 {
public:
- DS1820(uint32_t) { value = 1.0f; };
- bool begin() { return true; };
+ DS1820(uint32_t)
+ {
+ value = 1.0f;
+ };
+ bool begin()
+ {
+ return true;
+ };
void startConversion() {};
- float read() {
+ float read()
+ {
value += 1.1f;
return value;
}