Commit cd6f8c18 authored by 张明扬's avatar 张明扬 🇨🇳

feat:由于硬件较慢,连续帧发不出来,增加连续帧的延时,增大STmin

parent 6a54a18d
......@@ -716,7 +716,16 @@ void DoCAN_Receive_Flow_Control(void)
values 1,10,20,30,40,50 and 60.
-------------------------------------------------------*/
if ( TpCtrl.Process != TP_TX_CTS )
TpCtrl.STmin = TransportRxData.N_PDU_FC.N_PCI.STmin;
{
if(TransportRxData.N_PDU_FC.N_PCI.STmin == 0)
{
TpCtrl.STmin = 1;
}
else
{
TpCtrl.STmin = TransportRxData.N_PDU_FC.N_PCI.STmin;
}
}
/*-------------------------------------------------------
Request a service where the response requires more than
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment