firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: INA219 stopped working on 2.7.23

Open Nevermore-42 opened this issue 6 months ago • 3 comments

Category

Hardware Compatibility, Other

Hardware

Station G2

Is this bug report about any UI (https://meshtastic.org/docs/configuration/device-uis/) component firmware?

  • [ ] Meshtastic UI aka MUI
  • [ ] InkHUD
  • [ ] BaseUI

Firmware Version

v2.7.23

Description

After upgrading from v2.7.21 to v2.7.23 (git cloning branch) an INA219 sensor attached to the node stopped giving measurements for the battery, after performing several downgrades and upgrades to verify the issue, it seems that it is indeed related to changes in the v2.7.23 release which are not present in v2.7.21.

Relevant log output


Nevermore-42 avatar May 08 '26 12:05 Nevermore-42

I lack the programming skills to fix this, but when doing A/B testing between the firmwares I saw that if I replaced the following logic here (lines 415-456) https://github.com/meshtastic/firmware/blob/v2.7.23.b246bcd/src/detect/ScanI2CTwoWire.cpp#L415-L456

With the code from v2.7.21 it works again https://github.com/meshtastic/firmware/blob/v2.7.21.1370b23/src/detect/ScanI2CTwoWire.cpp#L373-L394

So my guessing is that the INA219 is mistakenly detected as SHT2X with the new code?

Nevermore-42 avatar May 08 '26 18:05 Nevermore-42

Looks like maybe this issue #10110

madeofstown avatar May 12 '26 13:05 madeofstown

Looks like maybe this issue #10110

You are absolutely right. Will close this one.

Nevermore-42 avatar May 12 '26 13:05 Nevermore-42