mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
vfs: fix occasional ISR context mismatch in event fd
This commit is contained in:
parent
eccb1f85d8
commit
7eafcb0372
@ -260,7 +260,7 @@ static ssize_t event_write(int fd, const void *data, size_t size)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xPortInIsrContext()) {
|
if (!xPortCanYield()) {
|
||||||
ret = signal_event_fd_from_isr(fd, data, size);
|
ret = signal_event_fd_from_isr(fd, data, size);
|
||||||
} else {
|
} else {
|
||||||
const uint64_t *val = (const uint64_t *)data;
|
const uint64_t *val = (const uint64_t *)data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user