main/task_sdcard.c

changeset 92
bac0a860f5dd
parent 91
255a75322212
child 105
9e00845dc1ee
--- a/main/task_sdcard.c	Mon May 17 20:44:35 2021 +0200
+++ b/main/task_sdcard.c	Mon May 17 22:38:43 2021 +0200
@@ -440,9 +440,9 @@
     slot_config.host_id     = host.slot;
 
     /*
-     * No errors from the sdmmc_cmd driver.
+     * No errors from the sdspi_transaction driver.
      */
-    esp_log_level_set("sdmmc_cmd", ESP_LOG_NONE);
+    esp_log_level_set("sdspi_transaction", ESP_LOG_NONE);
 
     /*
      * Options for mounting the filesystem.
@@ -487,6 +487,7 @@
 		} else {
 		    closedir(dir);
 		}
+		esp_log_level_set("sdmmc_sd", ESP_LOG_INFO);
 	    }
 	} else {
 	    /*
@@ -497,6 +498,7 @@
 		ESP_LOGI(TAG, "SD card missing, unmount");
 		my_esp_vfs_fat_sdmmc_unmount();
 		sdcard_state->card_present = false;
+		esp_log_level_set("sdmmc_sd", ESP_LOG_NONE);
 	    } else {
 		closedir(dir);
 	    }

mercurial