Skip to content

Conversation

@dhalbert
Copy link
Contributor

Fixes #44.

I2CDevice was passing None as a default value for end in read and write operations on busio.I2C objects. The busio.I2C documentation says that None will work, but it does not: len(buf) must be passed instead as the default.

If busio.I2C were fixed to allow None, this change could be reverted.

@dhalbert dhalbert requested review from a team and caternuson February 19, 2020 01:28
@caternuson
Copy link
Contributor

Tested and works.

Thanks for quick fix @dhalbert

@caternuson caternuson merged commit 6348879 into adafruit:master Feb 19, 2020
@dhalbert dhalbert deleted the fix-end-values branch February 19, 2020 01:54
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Feb 19, 2020
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.

TypeError: can't convert NoneType to int

2 participants