mirror of
https://github.com/espressif/esp-idf.git
synced 2024-09-20 00:36:01 -04:00
Merge branch 'fix/fsync-call-propagation-to-secondary-console' into 'master'
fix(console): Fsync not propagated to secondary output Closes IDFGH-12104 See merge request espressif/esp-idf!30195
This commit is contained in:
commit
3554fd5665
@ -98,7 +98,11 @@ int console_fcntl(int fd, int cmd, int arg)
|
||||
|
||||
int console_fsync(int fd)
|
||||
{
|
||||
return fsync(vfs_console.fd_primary);
|
||||
const int ret_val = fsync(vfs_console.fd_primary);
|
||||
#if CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG
|
||||
(void)fsync(vfs_console.fd_secondary);
|
||||
#endif
|
||||
return ret_val;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_VFS_SUPPORT_DIR
|
||||
|
Loading…
Reference in New Issue
Block a user