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

ina219: restructure so voltage can be returned even if power/current invalid #87

Merged
merged 1 commit into from
Jan 12, 2025

Conversation

gsexton
Copy link
Contributor

@gsexton gsexton commented Jan 10, 2025

Fixes #73

I would have wrapped the errors returned since I know that's what you prefer, but the tests would have been pretty broken and I didn't see a straight-forward repair.

Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.5%. Comparing base (0fba034) to head (126b851).
Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main     #87   +/-   ##
=====================================
  Coverage   49.5%   49.5%           
=====================================
  Files         90      90           
  Lines      11736   11740    +4     
=====================================
+ Hits        5808    5812    +4     
  Misses      5674    5674           
  Partials     254     254           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@maruel maruel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@maruel maruel merged commit c46abe9 into periph:main Jan 12, 2025
10 checks passed
@gsexton gsexton deleted the ina219 branch February 9, 2025 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

ina219: Overflow bit indicates a math overflow error
2 participants