Skip to content

Commit

Permalink
Seplos Zellanzahl != 16 Bugfix. Falscher Array-Offset
Browse files Browse the repository at this point in the history
  • Loading branch information
tueftler0 committed Oct 28, 2024
1 parent 24c9d8f commit 7fa3906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/SeplosBms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ static bool parseMessage(uint8_t * t_message, uint8_t address)
// ... ... ...
// 39 0x0C 0xD8 Cell voltage 16

u8_lNumOfCells = convertAsciiHexToByte(t_message[8], t_message[8+1]); //Number of cells
u8_lNumOfCells = convertAsciiHexToByte(t_message[16], t_message[16+1]); //Number of cells
#ifdef SEPLOS_DEBUG
BSC_LOGD(TAG, "Number of cells: %d", u8_lNumOfCells);
#endif
Expand Down

0 comments on commit 7fa3906

Please sign in to comment.