소스 검색

don't use pthread_attr if we want esp.cfg to prevail

Philippe G 3 년 전
부모
커밋
bc0783f7b9
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      components/platform_console/platform_console.c

+ 1 - 4
components/platform_console/platform_console.c

@@ -401,11 +401,8 @@ void console_start() {
 		cfg.stack_size = 4096 ;
 	}
 	esp_pthread_set_cfg(&cfg);
-	pthread_attr_t attr;
-	pthread_attr_init(&attr);
+	pthread_create(&thread_console, NULL, console_thread, NULL);
 
-	pthread_create(&thread_console, &attr, console_thread, NULL);
-	pthread_attr_destroy(&attr);   	
 }
 
 static esp_err_t run_command(char * line){