소스 검색

fix stdin redirection issue - release

philippe44 1 년 전
부모
커밋
d7706e5608
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      components/platform_console/platform_console.c

+ 2 - 2
components/platform_console/platform_console.c

@@ -313,8 +313,8 @@ void initialize_console() {
 	vfs.open = stdin_dummy;
 	vfs.read = stdin_read;
 
-	ESP_ERROR_CHECK(esp_vfs_register("/dev/console", &vfs, NULL));
-	freopen("/dev/console", "r", stdin);
+	ESP_ERROR_CHECK(esp_vfs_register("/dev/redirect", &vfs, NULL));
+    freopen("/dev/redirect", "r", stdin);
 
 	/* Disable buffering on stdin */
 	setvbuf(stdin, NULL, _IONBF, 0);