Skip to content

Commit

Permalink
Merge pull request #103 from martincornejo/cell-voltages
Browse files Browse the repository at this point in the history
Fix cell voltages processing
  • Loading branch information
fsantini authored Oct 13, 2024
2 parents 02d2d58 + 63e9a73 commit 242a296
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions e3dc/_e3dc.py
Original file line number Diff line number Diff line change
Expand Up @@ -1569,9 +1569,8 @@ def get_battery_data(
and voltages_raw[1] != "Error"
):
voltages_data = rscpFindTagIndex(voltages_raw, RscpTag.BAT_DATA)
seriesCellCount = rscpFindTagIndex(info, RscpTag.BAT_DCB_NR_SERIES_CELL)
for cell in range(0, seriesCellCount):
voltages.append(voltages_data[cell][2])
for cell_voltage in voltages_data:
voltages.append(cell_voltage[2])

dcbobj: Dict[str, Any] = {
"current": rscpFindTagIndex(info, RscpTag.BAT_DCB_CURRENT),
Expand Down

0 comments on commit 242a296

Please sign in to comment.