You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not so sure this really matters, but if it does we'd need to be a little more careful about where the .close() goes since we should not assume that the user wants to close an SMBus object they've passed into the function.
You need to close the SMBus in read_eeprom. Best place would be in a finally part of the try. See https://pypi.org/project/smbus2/ example
The text was updated successfully, but these errors were encountered: