Greenhouse project

Dependencies:   LinkedList

Dependents:   greenhouse_proj

Fork of DS1820 by Erik -

Files at this revision

API Documentation at this revision

Comitter:
cricbis
Date:
Fri Nov 24 15:50:17 2017 +0000
Parent:
14:c591209285e9
Commit message:
vf

Changed in this revision

DS1820.cpp Show annotated file Show diff for this revision Revisions of this file
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);               ///////////////////////////////////
     }
 }