We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c27a59 commit 7b3bf3dCopy full SHA for 7b3bf3d
bms/src/Can.h
@@ -4,6 +4,8 @@
4
5
#include <stdint.h>
6
7
+#include "mbed.h"
8
+
9
// SIDs From Accumulator
10
constexpr uint32_t kFuncIdHeartBeatAcc = 0x701;
11
constexpr uint32_t kFuncIdCellStartup = 0x420;
@@ -48,7 +50,7 @@ CANMessage BMSVoltageMessage (uint8_t row, uint16_t * voltages) {
48
50
uint8_t data[8];
49
51
for (int i = 0; i < 8; i += 2) {
52
data[i] = voltages[i/2] >> 8;
- data[++i] = voltages [i/2];
53
+ data[i + 1] = voltages [i/2];
54
}
55
return CANMessage(kFuncIdCellVoltage[row], data);
56
0 commit comments