# HG changeset patch # User Daniel O'Connor # Date 1357601123 -37800 # Node ID 3aac1bb5491823568b367b3ff5078eb51110570b # Parent a50a054d060c61aa4d6351c0377871cd10b004a9 Add missing J delay for AVR. diff -r a50a054d060c -r 3aac1bb54918 1wire-config-avr.h --- a/1wire-config-avr.h Wed Feb 08 10:36:26 2012 +1030 +++ b/1wire-config-avr.h Tue Jan 08 09:55:23 2013 +1030 @@ -87,6 +87,9 @@ _delay_us(48); _delay_us(48); _delay_us(48); _delay_us(48); \ _delay_us(48);_delay_us(48); _delay_us(48); } while (0) /* 480 usec */ #define OWDELAY_I do { _delay_us(48); _delay_us(22); } while (0) /* 70 usec */ +#define OWDELAY_J do { _delay_us(41); _delay_us(41); _delay_us(41); \ + _delay_us(41); _delay_us(41); _delay_us(41); _delay_us(41); \ + _delay_us(41);_delay_us(41); _delay_us(41); } while (0) /* 410 usec */ #ifdef OW_DEBUG #define OWPUTS(x) puts_P(x)