Browse Source

【测试】主线程睡眠测试成功,能正确进入睡眠和唤醒。

CHENJIE-PC\QiXiang_CHENJIE 4 years ago
parent
commit
490042d54e
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/app.c

+ 4 - 2
src/app.c

@@ -223,8 +223,10 @@ static void Main_Task(void* arg)
                 #endif
                 FaultDisplay(LED_TURN_ON);
                 slpManDeepSlpTimerStart(deepslpTimerID,60000); 
-                while(1);
-                break;
+                while(1)
+                {
+                    osDelay(5000/portTICK_PERIOD_MS);
+                }
             }
         }