fix canflash for pedal (#267)

This commit is contained in:
BogGyver 2019-09-05 11:24:49 -04:00 committed by rbiasini
parent 3397b1527e
commit c131fffaeb
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ void CAN1_RX0_IRQHandler(void) {
if ((CAN->sFIFOMailBox[0].RIR>>21) == CAN_BL_INPUT) { if ((CAN->sFIFOMailBox[0].RIR>>21) == CAN_BL_INPUT) {
uint8_t dat[8]; uint8_t dat[8];
for (int i = 0; i < 8; i++) { for (int i = 0; i < 8; i++) {
dat[0] = GET_BYTE(&CAN->sFIFOMailBox[0], i); dat[i] = GET_BYTE(&CAN->sFIFOMailBox[0], i);
} }
uint8_t odat[8]; uint8_t odat[8];
uint8_t type = dat[0] & 0xF0; uint8_t type = dat[0] & 0xF0;