From 9f6dc9e62f2eac63b41fb59f75b27aa97d20d9e9 Mon Sep 17 00:00:00 2001 From: James M Date: Mon, 26 Nov 2018 16:57:40 -0800 Subject: [PATCH] Edit delay for presence pulse check As per datasheet minimum time from end of reset pulse to end of presence pulse is 75us. --- src/onewire.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onewire.c b/src/onewire.c index 5e9bd0a..21f653f 100644 --- a/src/onewire.c +++ b/src/onewire.c @@ -35,7 +35,7 @@ uint8_t onewireInit( volatile uint8_t *port, volatile uint8_t *direction, volati *direction &= ~mask; //Set port to input - _delay_us( 100 ); + _delay_us( 70 ); response = *portin & mask; //Read input