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: LinkedList
Fork of DS1820 by
Diff: DS1820.cpp
- Revision:
- 16:b408decfb53d
- Parent:
- 14:c591209285e9
diff -r c591209285e9 -r b408decfb53d DS1820.cpp
--- a/DS1820.cpp Sun Jan 08 17:26:21 2017 +0000
+++ b/DS1820.cpp Fri Nov 24 15:50:17 2017 +0000
@@ -86,13 +86,13 @@
}
}
-DS1820::~DS1820 (void) {
- node *tmp;
- for(int i=1; i<=probes.length(); i++)
- {
- tmp = probes.pop(i);
- if (tmp->data == this)
- probes.remove(i);
+DS1820::~DS1820 (void) { ///////////////////////////////////
+ node *tmp; ///////////////////////////////////
+ for(int i=1; i<=probes.length(); i++) ///////////////////////////////////
+ { ///////////////////////////////////
+ tmp = probes.pop(i); ///////////////////////////////////
+ if (tmp->data == this) ///////////////////////////////////
+ probes.remove(i); ///////////////////////////////////
}
}
