feelfreelinux / feelfreelinux/ds18b20
Find A Bug
- Dominant language
- C
- Stars
- 91
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
when it goes first while then numberFound = 1,but the secode while set numberFound = 0,so numberFound always no be 2;
my solution is clear numberFound = 0(line 26)
the result is :
Temperatures: 80.6F 80.6F
Temperatures: 27.0C 27.0C
Temperature: 27.0C
```
// search for 2 addresses on the oneWire protocol
while (search(tempSensorAddresses[numberFound],true)) {
numberFound++;
if (numberFound == 2) break;
}
// if 2 addresses aren't found then flash the LED rapidly
while (numberFound != 2) {
numberFound = 0;
```
if you have a good idea for solve this problem please tell me. thank you every much
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.