Skip to content
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

Changed the order of multiplication to avoid overflow for int16 value #17

Merged
merged 1 commit into from
Apr 22, 2024

Conversation

ChrisRed255
Copy link
Contributor

Hi there,

i made a small change on the INA219.cpp file to solve the overflow issue on the getPower function by changing the order of multiplication.

Thanks in advance for accepting this change.

Best regards.

@RobTillaart RobTillaart self-assigned this Apr 22, 2024
@RobTillaart RobTillaart added the enhancement New feature or request label Apr 22, 2024
@RobTillaart
Copy link
Owner

Thanks for this PR,
I will look into it asap, possibly this evening.

@ChrisRed255
Copy link
Contributor Author

My pleasure, thanks.

@RobTillaart RobTillaart added the bug Something isn't working label Apr 22, 2024
@RobTillaart RobTillaart merged commit 8fec7e3 into RobTillaart:master Apr 22, 2024
3 checks passed
@RobTillaart
Copy link
Owner

Thanks for the PR, will bump the version asap

RobTillaart added a commit that referenced this pull request Apr 22, 2024
- Bump version after Fix #17, Kudos to ChrisRed255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants