forked from espressif/esp-idf
Fix typo in comparison
This commit is contained in:
@@ -303,7 +303,7 @@ static void _mount(void)
|
|||||||
struct dirent *d;
|
struct dirent *d;
|
||||||
DIR *dh = opendir(BASE_PATH);
|
DIR *dh = opendir(BASE_PATH);
|
||||||
if (!dh) {
|
if (!dh) {
|
||||||
if (errno = ENOENT) {
|
if (errno == ENOENT) {
|
||||||
//If the directory is not found
|
//If the directory is not found
|
||||||
ESP_LOGE(TAG, "Directory doesn't exist %s", BASE_PATH);
|
ESP_LOGE(TAG, "Directory doesn't exist %s", BASE_PATH);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user