osal_start_timerEx( MyApp_TaskID,SEND_DATA_EVENT,(MYAPP_SEND_MSG_TIMEOUT+ (osal_rand() & 0x00FF)) );
这个定时器开启函数,最后加一个osal_rand() & 0x00FF和不加这个的区别是什么呀?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
osal_start_timerEx( MyApp_TaskID,SEND_DATA_EVENT,(MYAPP_SEND_MSG_TIMEOUT+ (osal_rand() & 0x00FF)) );
这个定时器开启函数,最后加一个osal_rand() & 0x00FF和不加这个的区别是什么呀?
为什么要加呢,而且随机?VV大神,麻烦你回答一下这个帖子的问题,只需要费你几分钟,但是如果你不解答,我可能一辈子都不明白了。谢谢!VV 说:当然有区别,定时的时间不一样啊!