Skip to content

Commit

Permalink
boardd: apply bus offset in can recv
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Nov 14, 2021
1 parent ea761cb commit 5ffb3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/boardd/panda.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5ffb3e4

Please sign in to comment.