We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75d3d41 commit 63e9a73Copy full SHA for 63e9a73
1 file changed
e3dc/_e3dc.py
@@ -1279,9 +1279,8 @@ def get_battery_data(
1279
and voltages_raw[1] != "Error"
1280
):
1281
voltages_data = rscpFindTagIndex(voltages_raw, RscpTag.BAT_DATA)
1282
- seriesCellCount = rscpFindTagIndex(info, RscpTag.BAT_DCB_NR_SERIES_CELL)
1283
- for cell in range(0, seriesCellCount):
1284
- voltages.append(voltages_data[cell][2])
+ for cell_voltage in voltages_data:
+ voltages.append(cell_voltage[2])
1285
1286
dcbobj = {
1287
"current": rscpFindTagIndex(info, RscpTag.BAT_DCB_CURRENT),
0 commit comments