We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 02d2d58 + 63e9a73 commit 242a296Copy full SHA for 242a296
1 file changed
e3dc/_e3dc.py
@@ -1569,9 +1569,8 @@ def get_battery_data(
1569
and voltages_raw[1] != "Error"
1570
):
1571
voltages_data = rscpFindTagIndex(voltages_raw, RscpTag.BAT_DATA)
1572
- seriesCellCount = rscpFindTagIndex(info, RscpTag.BAT_DCB_NR_SERIES_CELL)
1573
- for cell in range(0, seriesCellCount):
1574
- voltages.append(voltages_data[cell][2])
+ for cell_voltage in voltages_data:
+ voltages.append(cell_voltage[2])
1575
1576
dcbobj: Dict[str, Any] = {
1577
"current": rscpFindTagIndex(info, RscpTag.BAT_DCB_CURRENT),
0 commit comments