Skip to content

Commit

Permalink
only the panda has gmlan
Browse files Browse the repository at this point in the history
  • Loading branch information
geohot committed Feb 25, 2018
1 parent 9f43abe commit eece37d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions board/drivers/can.h
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void can_init_all() {
}

void can_set_gmlan(int bus) {
#ifdef PANDA
if (bus == -1 || bus != can_num_lookup[3]) {
// GMLAN OFF
switch (can_num_lookup[3]) {
Expand Down Expand Up @@ -238,6 +239,7 @@ void can_set_gmlan(int bus) {
can_num_lookup[3] = 2;
can_init(2);
}
#endif
}

// CAN error
Expand Down

0 comments on commit eece37d

Please sign in to comment.