Dallas' DS1820 family temperature sensor. For more details see [https://developer.mbed.org/users/hudakz/code/DS1820/wiki/Homepage]

Dependencies:   OneWire

Fork of DS1820 by Zoltan Hudak

Revision:
2:b7ad1da7331a
Parent:
1:e4689408d617
Child:
3:a250babd0a9f
--- a/DS1820.cpp	Mon Mar 16 08:35:03 2015 +0000
+++ b/DS1820.cpp	Mon Mar 16 08:52:33 2015 +0000
@@ -96,17 +96,17 @@
             present = 0;
 #if DEBUG
             serial.printf("Device doesn't belong to the DS1820 family\r\n");
+#endif            
             return false;
-#endif            
         }
         return true;
     }
+    else {
 #if DEBUG    
-    else {
         serial.printf("Invalid CRC!\r\n");
+#endif    
         return false;
     }
-#endif    
 }
 
 /**