boards/esp32c3-devkit: Use nx_mount to avoid overriding errno

This commit is contained in:
Gustavo Henrique Nihei 2021-03-16 09:29:53 -03:00 committed by Xiang Xiao
parent f616c72ee2
commit a93d538f3b

View File

@ -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",