mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 07:46:16 +08:00
boards/esp32c3-devkit: Use nx_mount to avoid overriding errno
This commit is contained in:
committed by
Xiang Xiao
parent
f616c72ee2
commit
a93d538f3b
@@ -80,7 +80,7 @@ int esp32c3_bringup(void)
|
||||
#ifdef CONFIG_FS_TMPFS
|
||||
/* Mount the tmpfs file system */
|
||||
|
||||
ret = mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
|
||||
ret = nx_mount(NULL, CONFIG_LIBC_TMPDIR, "tmpfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR, "ERROR: Failed to mount tmpfs at %s: %d\n",
|
||||
|
||||
Reference in New Issue
Block a user