watersenor_and_temp

Dependencies:   OneWire

Dependents:   IDW01M1-MQTT3 DS1820_IDW01M1 DS1820_IDW01M1_finish Dissolved_oxygen_sensor_online ... more

Fork of DS1820 by Zoltan Hudak

Files at this revision

API Documentation at this revision

Comitter:
e58136782000
Date:
Thu Nov 02 10:57:40 2017 +0000
Parent:
8:8dfdd1603e4d
Commit message:
watersensor and temp

Changed in this revision

DS1820.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8dfdd1603e4d -r af21738cf2da DS1820.cpp
--- a/DS1820.cpp	Fri Mar 27 12:34:16 2015 +0000
+++ b/DS1820.cpp	Thu Nov 02 10:57:40 2017 +0000
@@ -80,13 +80,13 @@
  */
 bool DS1820::begin(void) {
     oneWire.reset_search();
-    wait_ms(250);
+    wait_ms(100);
     if(!oneWire.search(addr)) {
 #if DEBUG
         serial.printf("No addresses.\r\n");
 #endif
         oneWire.reset_search();
-        wait_ms(250);
+        wait_ms(100);
         return false;
     }