Update adafruit_max1704x.py for board ESP323-S3 (no psram) #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I was getting the exception "Clearing reset alert did not succeed" when trying to initialize the MAX17048 battery monitor on the ESP32-S3 (no psram) board.
I'm running with CircuitPython 8.0.4 and the 8.x Library Bundles built on 3/27/2023.
The line of code giving the error was
monitor = adafruit_max1704x.MAX17048(board.I2C())
By changing the loop to run 3 times fixed the issue for me, and I see the comment saying on this board it fails to reset the first time. Like my old mentor used to say, if twice is good three times is better :)