Zoltan Hudak / OneWire

Dependents:   DS1825 DISCO-F746-Dessiccateur-V1 watersenor_and_temp_code DS1820 ... more

Files at this revision

API Documentation at this revision

Comitter:
hudakz
Date:
Sun Jul 19 19:27:09 2020 +0000
Parent:
13:016b84669050
Child:
15:7f7759008807
Commit message:
Dallas' 1-Wire bus protocol library

Changed in this revision

OneWire.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/OneWire.cpp	Thu Apr 04 20:46:58 2019 +0000
+++ b/OneWire.cpp	Sun Jul 19 19:27:09 2020 +0000
@@ -200,9 +200,10 @@
         WAIT_US(SAMPLE_POINT - t);
     r = READ();
     timer.stop();
+    WAIT_US(55);
+    //printf("t  = %d\r\n", t);
+    //printf("t1 = %d\r\n", timer.read_us() - t);
     timer.reset();
-    WAIT_US(55);
-    //printf("t = %d\r\n", t);
     return r;
 }