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

Apply ow power selection at the end of the write slot while irqs are masked #1808

Merged
merged 1 commit into from
Mar 1, 2017

Conversation

devsaurus
Copy link
Member

Fixes #1797.

  • This PR is for the dev branch rather than for master.
  • This PR is compliant with the other contributing guidelines as well (if not, please describe why).
  • I have thoroughly tested my contribution.

The strong output driver is activated at the end of the last write slot for power=1 case while interrupts are still masked. This ensures that TSPON(max) is not violated when an interrupt is pending.
I couldn't stimulate the suspected failure case due to the tight timing requirements (have an interrupt triggered at exactly the right time slot). But tests with 2 DS18B20s in powered and parasite mode on the bus didn't reveal any regressions at least.

@jmattsson
Copy link
Member

Looks good to me, but I haven't/can't test it.

@marcelstoer marcelstoer added this to the 2.0.0-follow-up milestone Mar 1, 2017
@marcelstoer marcelstoer merged commit 2168e51 into nodemcu:dev Mar 1, 2017
@devsaurus devsaurus deleted the ow_power branch March 1, 2017 19:50
eiselekd pushed a commit to eiselekd/nodemcu-firmware that referenced this pull request Jan 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants