diff options
author | BIGTREETECH <38851044+bigtreetech@users.noreply.github.com> | 2022-06-06 22:59:18 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 10:59:18 -0400 |
commit | ada571ecb8528e57003e1f878e224ab230920b33 (patch) | |
tree | 6577bf8e2430ad1efd7223fb007a1911f255ac79 /src/stm32/fdcan.c | |
parent | db5a4351a5d580563fa4c0323997a4f48bfe120d (diff) | |
download | kutter-ada571ecb8528e57003e1f878e224ab230920b33.tar.gz kutter-ada571ecb8528e57003e1f878e224ab230920b33.tar.xz kutter-ada571ecb8528e57003e1f878e224ab230920b33.zip |
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>
Diffstat (limited to 'src/stm32/fdcan.c')
-rwxr-xr-x | src/stm32/fdcan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index 63b1659e..aeb6eced 100755 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -303,8 +303,6 @@ can_init(void) if (SOC_CAN == FDCAN1) FDCAN_CONFIG->CKDIV = 0; - /* Disable automatic retransmission */ - SOC_CAN->CCCR |= FDCAN_CCCR_DAR; /* Disable protocol exception handling */ SOC_CAN->CCCR |= FDCAN_CCCR_PXHD; |