fix issue with ford instrument cluster, default can to silent mode

master
George Hotz 2017-05-26 11:20:52 -07:00
parent f90b6bb6e4
commit 6c9c97a4f9
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,11 @@ void can_init(CAN_TypeDef *CAN) {
CAN->BTR |= CAN_BTR_SILM | CAN_BTR_LBKM;
#endif
#ifdef PANDA_SAFETY
// default to silent mode to prevent issues with Ford
CAN->BTR |= CAN_BTR_SILM;
#endif
// reset
CAN->MCR = CAN_MCR_TTCM;