Skip to content
This repository was archived by the owner on Apr 13, 2024. It is now read-only.

Commit 5004092

Browse files
Auto recover CAN bus
1 parent 3c1728a commit 5004092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/can.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void can_init(void)
7777
hcan.Init.TimeSeg1 = CAN_BS1_15TQ;
7878
hcan.Init.TimeSeg2 = CAN_BS2_2TQ;
7979
hcan.Init.TimeTriggeredMode = DISABLE;
80-
hcan.Init.AutoBusOff = DISABLE;
80+
hcan.Init.AutoBusOff = ENABLE;
8181
hcan.Init.AutoWakeUp = DISABLE;
8282
hcan.Init.AutoRetransmission = DISABLE;
8383
hcan.Init.ReceiveFifoLocked = DISABLE;

0 commit comments

Comments
 (0)