Fork to fix compiler warnings.

Dependencies:   LinkedList

Fork of DS1820 by Erik -

Revision:
19:cabdd07a57e7
Parent:
17:eeb0edf0d2d5
--- a/DS1820.cpp	Fri Mar 23 23:25:22 2018 +0100
+++ b/DS1820.cpp	Sat Mar 24 04:00:34 2018 +0100
@@ -50,11 +50,13 @@
     
     if (!unassignedProbe(&_datapin, _ROM)) {
         printf("DS18B20:No unassigned DS1820 found!\r\n");
+        valid = false;
     }
     else {
         _datapin.input();
         probes.append(this);
         _parasite_power = !read_power_supply();
+        valid = true;
     }
 }
 
@@ -427,4 +429,7 @@
     return onewire_bit_in(&this->_datapin);
 }
 
+bool DS1820::isValid() {
+    return valid;
+}