Skip to content

Commit

Permalink
Merge pull request #125 from jamiejones85/master
Browse files Browse the repository at this point in the history
Fixing remaining kWh data
  • Loading branch information
damienmaguire authored Nov 18, 2024
2 parents c4bf706 + c5bc1b2 commit 0a99844
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 0a99844

Please sign in to comment.