Skip to content

fixed battery temp sensor fail#132

Merged
vchrisb merged 2 commits intofsantini:masterfrom
bullitt186:battery_sensors_fix
Oct 28, 2025
Merged

fixed battery temp sensor fail#132
vchrisb merged 2 commits intofsantini:masterfrom
bullitt186:battery_sensors_fix

Conversation

@bullitt186
Copy link
Contributor

As described in #130, get_battery_data() can fail if BAT_DCB_NR_SENSOR returns a bigger value than acutal temperature sensor values delivered.
This simple fix assures that the index for actual temperature sensor values cannot overshoot.

@vchrisb vchrisb merged commit 0276725 into fsantini:master Oct 28, 2025
5 checks passed
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.

2 participants