Skip to content

Allow INA3221 overrides and fix INA219 conflict#37

Open
andyshinn wants to merge 2 commits intoweebl2000:dev_plusfrom
andyshinn:ashinn/allow-ina-overrides
Open

Allow INA3221 overrides and fix INA219 conflict#37
andyshinn wants to merge 2 commits intoweebl2000:dev_plusfrom
andyshinn:ashinn/allow-ina-overrides

Conversation

@andyshinn
Copy link

Allows the INA3221 address and shunt values to be overridden since not all are the same.

tahnok and others added 2 commits March 2, 2026 15:53
This adds a support for defining alternate INA3221 addresses.

It also adds some special handling in the case you change the address to
0x40 and it conflicts with INA219. In that case, the INA3221 responds to
INA219 commands, but with garbage data
Copilot AI review requested due to automatic review settings March 2, 2026 21:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR makes the INA3221 configuration more flexible and prevents probing an INA219 when it would conflict with an already-initialized INA3221 on the same I2C address.

Changes:

  • Add #ifndef guards so TELEM_INA3221_ADDRESS and TELEM_INA3221_SHUNT_VALUE can be overridden externally.
  • Skip INA219 initialization when INA3221 is initialized and both are configured for the same I2C address.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants