Merge pull request #787 from TerryE/dev-onewire

Merge Onewire changes from Master into Dev
This commit is contained in:
Johny Mattsson 2015-11-24 11:05:40 +11:00
commit 33e41a633e
1 changed files with 8 additions and 3 deletions

View File

@ -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