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

Do not let I2CDevice probe for the device #20

Merged
merged 1 commit into from May 11, 2022

Conversation

dhalbert
Copy link
Contributor

The MCP960x does not seem to like zero-length writes, and can NAK when probed with such a write. On atmel-samd, the write was repeated once immediately if it failed, and for some reason this worked. But on other ports, the write is done just once, and it fails. If the write is repeated a little later, it still fails.

So when creating the adafruit_busdevice.I2CDevice(), ask it not to probe.

@dhalbert dhalbert requested a review from a team May 11, 2022 02:13
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix!

@tannewt tannewt merged commit 5cfc8b0 into adafruit:main May 11, 2022
@dhalbert dhalbert deleted the no-probe branch May 11, 2022 16:59
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request May 12, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP9600 to 1.3.0 from 1.2.4:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP9600#20 from dhalbert/no-probe
  > change discord badge
  > Patch: Replaced discord badge image
  > Updated gitignore
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

Successfully merging this pull request may close these issues.

None yet

2 participants