|
@@ -312,9 +312,6 @@ static void Main_Task(void* arg)
|
|
|
{
|
|
|
PROC_TCP_STATE_SWITCH(PROCESS_TCP_STATE_LINK);
|
|
|
Tcp_index = 0;
|
|
|
- #ifdef BL_FILE_LOG
|
|
|
- bluejoy_printf(BL_LEVEL3,"Uart_Rece_BattI:%d,sleep_index:%d\n",Uart_Rece_BattI,sleep_index);
|
|
|
- #endif
|
|
|
}
|
|
|
if((!Can_Enable)&&((Uart_Rece_BattI==0x0000)||(Uart_Rece_BattI==0xffff)))
|
|
|
{
|
|
@@ -346,6 +343,9 @@ static void Main_Task(void* arg)
|
|
|
if((Uart_Sleep_Flag)&&(Can_Sleep_Flag)&&(Tcp_Sleep_Flag))
|
|
|
break;
|
|
|
}
|
|
|
+ #ifdef BL_FILE_LOG
|
|
|
+ bluejoy_printf(BL_LEVEL3,"sleep\n");
|
|
|
+ #endif
|
|
|
osDelay(10000);
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("Ms_sleep:uart_%d,can_%d,tcp_%d\r\n",gProcess_Uart_Task,gProcess_Can_Task,gProcess_Tcp_Task);
|
|
@@ -373,9 +373,6 @@ static void Main_Task(void* arg)
|
|
|
#ifdef USING_PRINTF
|
|
|
printf("which slpstate can go now :%d \n",slpstate);
|
|
|
#endif
|
|
|
- #ifdef BL_FILE_LOG
|
|
|
- bluejoy_printf(BL_LEVEL3,"sleep\n");
|
|
|
- #endif
|
|
|
slpManDeepSlpTimerStart(deepslpTimerID, Sleep_Time);
|
|
|
while(1)
|
|
|
{
|
|
@@ -763,7 +760,7 @@ static void Can_Task(void* arg)
|
|
|
//加入GPS启动程序
|
|
|
if(gpsMsgQueue == NULL)
|
|
|
{
|
|
|
- gpsMsgQueue = osMessageQueueNew(2,sizeof(GPS_INFO), NULL);
|
|
|
+ gpsMsgQueue = osMessageQueueNew(1,sizeof(GPS_INFO), NULL);
|
|
|
}
|
|
|
osMessageQueueGet(gpsMsgQueue, &Gps_Data, 0, 1000);
|
|
|
#ifdef USING_PRINTF
|