Improvement: Send cellmV when cell events are raised #298
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What
This PR makes the cell over/under/deviation events easier to troubleshoot. Added to all battery types that were missing this.
Why
Now when for instance a cell overvoltage event is raised, it is hard to know what the value of the cell was when it occured.
How
Since the event can only get an u8 parsed (0-255), we shrink the cellvoltage by 20, and when reviewing the events you can simply add *20 to the value. (4250mV sent as 4250/20 = 212)