-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fix write_then_readinto in adafruit_bus_device I2CDevice #4146
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested fix with si7021 on MAgTag
It was failing prior to fix with:
Press any key to enter the REPL. Use CTRL-D to reload.
Adafruit CircuitPython 6.2.0-beta.1-127-ga10ce39ae on 2021-02-06; Adafruit MagTag with ESP32S2
>>>
>>> import board
>>> import adafruit_si7021
>>> sht = adafruit_si7021.SI7021(board.I2C())
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "adafruit_si7021.py", line 110, in __init__
File "adafruit_si7021.py", line 107, in __init__
File "adafruit_si7021.py", line 107, in __init__
TypeError: extra keyword arguments given
>>>
with this PR it works normally
odd behavior with this PR -- not sure if it is related to the PR...
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes sense, but I didn't do any testing.
the issue with the soft reboot is reproducible on a metro_esp32s2 but it does not occur on a PyPortal |
@jerryneedell Is this particular PR good to merge, or are you still investigating? |
@gamblor21 says good to merge. |
If the out_end optional keyword was omitted the keyword array skipped to indexes leading to parsing confusion.