LibreSolar / bms-firmware

Firmware for LibreSolar BMS boards based on bq769x0, bq769x2 or ISL94202
https://libre.solar/bms-firmware/
Apache License 2.0
152 stars 69 forks source link

BQ769x0-variant with mbed shows wrong current/temperature #8

Closed xsider closed 3 years ago

xsider commented 3 years ago

When compiled for mbed, the BQ769x0-variant shows wrong data in current measurement and temperature measurement (-273°C), this renders the BMS unusable. Fix follows.

xsider commented 3 years ago

10 fix the problem.

martinjaeger commented 3 years ago

Thanks for the bug report and the fix. Already merged it.

FYI: The firmware is soon going to be switched completely to Zephyr in order to make it more clean and easier to maintain (similar to the charge controller firmware). Just need a bit more of testing, but most of the change is already done in the develop branch.