mirror of https://github.com/commaai/panda.git
only the panda has gmlan
This commit is contained in:
parent
9f43abe59d
commit
eece37d7ac
|
@ -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]) {
|
||||
|
@ -238,6 +239,7 @@ void can_set_gmlan(int bus) {
|
|||
can_num_lookup[3] = 2;
|
||||
can_init(2);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// CAN error
|
||||
|
|
Loading…
Reference in New Issue