[Bug]: INA219 stopped working on 2.7.23
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
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?
Looks like maybe this issue #10110