mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
fix stdin redirection issue - release
This commit is contained in:
@@ -313,8 +313,8 @@ void initialize_console() {
|
|||||||
vfs.open = stdin_dummy;
|
vfs.open = stdin_dummy;
|
||||||
vfs.read = stdin_read;
|
vfs.read = stdin_read;
|
||||||
|
|
||||||
ESP_ERROR_CHECK(esp_vfs_register("/dev/console", &vfs, NULL));
|
ESP_ERROR_CHECK(esp_vfs_register("/dev/redirect", &vfs, NULL));
|
||||||
freopen("/dev/console", "r", stdin);
|
freopen("/dev/redirect", "r", stdin);
|
||||||
|
|
||||||
/* Disable buffering on stdin */
|
/* Disable buffering on stdin */
|
||||||
setvbuf(stdin, NULL, _IONBF, 0);
|
setvbuf(stdin, NULL, _IONBF, 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user