Skip to content

Commit

Permalink
fix canflash for pedal (commaai#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
BogGyver authored and rbiasini committed Sep 5, 2019
1 parent 3397b15 commit c131fff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion board/spi_flasher.h
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ void CAN1_RX0_IRQHandler(void) {
if ((CAN->sFIFOMailBox[0].RIR>>21) == CAN_BL_INPUT) {
uint8_t dat[8];
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 type = dat[0] & 0xF0;
Expand Down

0 comments on commit c131fff

Please sign in to comment.