Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find A Bug #12

Open
xmutzlq opened this issue Oct 26, 2022 · 0 comments
Open

Find A Bug #12

xmutzlq opened this issue Oct 26, 2022 · 0 comments

Comments

@xmutzlq
Copy link

xmutzlq commented Oct 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant