Merge branch 'sle118:master-v4.3' into led_visu-v4.3

This commit is contained in:
wizmo2
2023-08-12 10:03:08 +01:00
committed by GitHub
21 changed files with 36 additions and 24 deletions

View File

@@ -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);