mirror of https://github.com/Desuuuu/klipper.git
stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550)
Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
parent
db5a4351a5
commit
ada571ecb8
|
@ -303,8 +303,6 @@ can_init(void)
|
||||||
if (SOC_CAN == FDCAN1)
|
if (SOC_CAN == FDCAN1)
|
||||||
FDCAN_CONFIG->CKDIV = 0;
|
FDCAN_CONFIG->CKDIV = 0;
|
||||||
|
|
||||||
/* Disable automatic retransmission */
|
|
||||||
SOC_CAN->CCCR |= FDCAN_CCCR_DAR;
|
|
||||||
/* Disable protocol exception handling */
|
/* Disable protocol exception handling */
|
||||||
SOC_CAN->CCCR |= FDCAN_CCCR_PXHD;
|
SOC_CAN->CCCR |= FDCAN_CCCR_PXHD;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue