unit-test-app: reduce startup delay, clean up

This commit is contained in:
Ivan Grokhotkov
2017-11-09 17:26:43 +08:00
parent 81f806e676
commit 2eae440646
2 changed files with 3 additions and 4 deletions

View File

@@ -6,9 +6,8 @@
void unityTask(void *pvParameters)
{
vTaskDelay(1000 / portTICK_PERIOD_MS);
unity_run_menu();
while(1);
vTaskDelay(30); /* Delay a bit to let the main task be deleted */
unity_run_menu(); /* Doesn't return */
}
void app_main()