Fix typo in comparison

This commit is contained in:
Saurabh Kumar Bansal 2023-01-04 12:23:49 +05:30
parent 80cad41cc2
commit ff8b78227a

View File

@ -303,7 +303,7 @@ static void _mount(void)
struct dirent *d;
DIR *dh = opendir(BASE_PATH);
if (!dh) {
if (errno = ENOENT) {
if (errno == ENOENT) {
//If the directory is not found
ESP_LOGE(TAG, "Directory doesn't exist %s", BASE_PATH);
} else {