mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 20:48:33 -04:00
HAL_ChibiOS: disable CANFD bits if CANFD not enabled
cannot support CANFD receive on G4
This commit is contained in:
parent
deab955a0f
commit
aa0b119806
@ -721,7 +721,9 @@ bool CANIface::init(const uint32_t bitrate, const uint32_t fdbitrate, const Oper
|
||||
#endif
|
||||
can_->ILE = 0x3;
|
||||
|
||||
#if HAL_CANFD_SUPPORTED
|
||||
can_->CCCR |= FDCAN_CCCR_FDOE | FDCAN_CCCR_BRSE; // enable sending CAN FD frames, and Bitrate switching
|
||||
#endif
|
||||
|
||||
// If mode is Filtered then we finish the initialisation in configureFilter method
|
||||
// otherwise we finish here
|
||||
|
Loading…
Reference in New Issue
Block a user