初级会员
- 积分
- 139
- 金钱
- 139
- 注册时间
- 2014-5-27
- 在线时间
- 7 小时
|
10金钱
各位高手,小弟正在基于庆科micokit-3165开发板和MICO操作系统开发应用。正在调试micokit_enjoy工程。运行完成“uint32_t activate_retry_interval = 3;”后,查看activate_retry_interval的值为2779096485,请教activate_retry_interval的值为什么不等于3?谢谢!部分代码如下:
void fogcloud_main_thread(void *arg)
{
OSStatus err = kUnknownErr;
app_context_t* inContext = (app_context_t *)arg;
MVDResetRequestData_t devResetRequestData;
#ifdef ENABLE_FOGCLOUD_AUTO_ACTIVATE
MVDActivateRequestData_t devDefaultActivateData;
uint32_t activate_retry_interval = 3;
#endif
activate_retry_interval = 3;
/* wait for station on */
while(!inContext->appStatus.isWifiConnected){
mico_thread_msleep(500);
}
//--- create msg recv queue, NOTE: just push msg pionter into queue, so msg memory must be freed after used.
if(NULL == msg_recv_queue_mutex){
err = mico_rtos_init_mutex(&msg_recv_queue_mutex);
require_noerr_action(err, exit,fogcloud_log("ERROR: mico_rtos_init_mutex
(msg_recv_queue_mutex) failed, err=%d.", err));
}
|
|