diff --git a/board/drivers/can.h b/board/drivers/can.h index 422da965cfeba4..39958b03175ef2 100644 --- a/board/drivers/can.h +++ b/board/drivers/can.h @@ -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