Skip to content

Commit

Permalink
Fixing remaining kwh data
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiejones85 committed Nov 18, 2024
1 parent c4bf706 commit c5bc1b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kangoobms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ void KangooBMS::DecodeCAN(int id, uint8_t *data)
} else if (id == 0x425) {
minCellV = (((float)(((data[6] & 0x01) << 8) + data[7]) + 100) * 10);
maxCellV = ((float)(((data[4] & 0x03) << 7) + ((data[5] >> 1) + 100)) * 10);
remainingKHW = (float)(data[1] * 0.1);
remainingKHW = (float)((((data[0] & 0x01) << 8) + data[1]) * 0.1);

isolationResistance = data[4] >> 2;
isolationResistance = isolationResistance + (data[3] << 6);
Expand Down

0 comments on commit c5bc1b2

Please sign in to comment.