only the panda has gmlan

This commit is contained in:
George Hotz 2018-02-25 14:51:24 -08:00
parent 9f43abe59d
commit eece37d7ac
1 changed files with 2 additions and 0 deletions

View File

@ -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