Merge pull request #787 from TerryE/dev-onewire
Merge Onewire changes from Master into Dev
This commit is contained in:
commit
33e41a633e
|
@ -407,10 +407,15 @@ uint8_t onewire_search(uint8_t pin, uint8_t *newAddr)
|
||||||
LastFamilyDiscrepancy[pin] = 0;
|
LastFamilyDiscrepancy[pin] = 0;
|
||||||
search_result = FALSE;
|
search_result = FALSE;
|
||||||
}
|
}
|
||||||
int i;
|
else
|
||||||
for (i = 0; i < 8; i++) newAddr[i] = ROM_NO[pin][i];
|
{
|
||||||
|
for (rom_byte_number = 0; rom_byte_number < 8; rom_byte_number++)
|
||||||
|
{
|
||||||
|
newAddr[rom_byte_number] = ROM_NO[pin][rom_byte_number];
|
||||||
|
}
|
||||||
|
}
|
||||||
return search_result;
|
return search_result;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue