-
Notifications
You must be signed in to change notification settings - Fork 54
Ina238 + 237 via a refactor of INA260 too. #765
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
Conversation
…eclare INA classes to hide enums from each other
@brentru This PR is ready for review, see notes above about the refactor |
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.
@tyeth The refactor and splitting these drivers from .h to .cpp/.h makes sense to me. There are some syntactical things I'd like addressed before merging.
Ah damn, I've now overflowed some of the 4mb boards with the INA23x PR, so they'll need swapping to the no-ota partition sooner rather than later 😞 |
I'm going to temporarily migrate this to the no-OTA board repo, so we get the zip assets for <4MB boards |
@brentru I'm going to merge this one in later today/Monday, having done the review feedback, then release Monday with the DF Robot C3. Unless you'd like to discuss the PR generally, further, or the include stuff. |
@tyeth Okay, please tag me for re-review before merging |
Already did, won't let me again unless I dismiss you first. |
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.
Nice, a lot of memory safety implemented too!
This refactors the INA2xx components to avoid naming clashes in enums. Moving the driver includes and enum usage inside the cpp files keeps it scoped which avoids the conflicts between INA260 library and INA238/7/xx library.
We could probably do the same to resolve the naming conflict/redefined warnings from the vl ToF series (but that still builds).