Browse Source

v17_3_1:定时器完善更新

CHENJIE-PC\QiXiang_CHENJIE 4 years ago
parent
commit
56ff3e4586
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/app.c

+ 5 - 3
src/app.c

@@ -348,9 +348,11 @@ static void Main_Task(void* arg)
                 while(1)
                 {
                     if(!slpManDeepSlpTimerIsRunning(deepslpTimerID))
+                    {
                         slpManDeepSlpTimerDel(deepslpTimerID);
-                    slpManDeepSlpTimerStart(deepslpTimerID, Sleep_Time);
-                    osDelay(30000/portTICK_PERIOD_MS);
+                        slpManDeepSlpTimerStart(deepslpTimerID, Sleep_Time);
+                    }
+                    osDelay(60000/portTICK_PERIOD_MS);
                 }
                 break;
             }
@@ -1307,7 +1309,7 @@ static void Tcp_Task(void* arg)
                                 printf("\n");
                             #endif
                             TcpsendID = send(sockfd, TcpSendBuffer, NB_send_len, 0 );
-                            //发送失败暂时不写
+                            //发送失败
                             #ifdef USING_PRINTF
                                 printf("ConnectID:%d,TcpSend:%d,data length:%d,Data:  ",sockfd,TcpsendID,NB_send_len);
                                 for (int i = 0; i < NB_send_len; i++)