mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
vfs: uart/cdcacm/usb_serial_jtag fcntl return read/write state
This commit is contained in:
@@ -271,7 +271,7 @@ static int cdcacm_fcntl(int fd, int cmd, int arg)
|
||||
assert(fd == 0);
|
||||
int result;
|
||||
if (cmd == F_GETFL) {
|
||||
result = 0;
|
||||
result = O_RDWR;
|
||||
if (!s_blocking) {
|
||||
result |= O_NONBLOCK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user