Dallas' 1-Wire bus protocol library
Dependents: DS1825 DISCO-F746-Dessiccateur-V1 watersenor_and_temp_code DS1820 ... more
Diff: OneWire.cpp
- Revision:
- 14:12b783661ff4
- Parent:
- 12:27a1b359b95c
- Child:
- 15:7f7759008807
--- 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; }