boardd: apply bus offset in can recv

pull/22900/head
Adeeb Shihadeh 2021-11-13 17:11:25 -08:00
parent ea761cbbd5
commit 5ffb3e4347
1 changed files with 1 additions and 1 deletions

View File

@ -441,7 +441,7 @@ bool Panda::can_receive(std::vector<can_frame>& out_vec) {
can_frame canData;
canData.busTime = 0;
canData.address = (*(uint32_t*)&chunk[pos+1]) >> 3;
canData.src = (chunk[pos] >> 1) & 0x7;
canData.src = ((chunk[pos] >> 1) & 0x7) + bus_offset;
bool rejected = chunk[pos+1] & 0x1;
bool returned = (chunk[pos+1] >> 1) & 0x1;