Greenhouse project

Dependencies:   LinkedList

Dependents:   greenhouse_proj

Fork of DS1820 by Erik -

Revision:
16:b408decfb53d
Parent:
14:c591209285e9
--- 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);               ///////////////////////////////////
     }
 }