mirror of https://github.com/commaai/panda.git
fix canflash for pedal (#267)
This commit is contained in:
parent
3397b1527e
commit
c131fffaeb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue