@@ -117,17 +117,17 @@ static void CanTask()
{
UDS_Service(CanRxMsg);
udsFlag = 0;
- }
- if(msgFlag == 1)
- {
- CanMsgTx1000ms();
+ }
}
else
delayconuter++;
osDelay(10);
+ if(msgFlag == 1)
+ {
+ CanMsgTx1000ms();
if(delayconuter>=100 && msgFlag == 0)
delayconuter=0;