+ rearranged files
+ improved ui log + added image browser - image loading fails at the moment - arrangement of ui in image browser not checked
This commit is contained in:
+2
-4
@@ -71,16 +71,14 @@ void sd_init(void){
|
||||
ret = esp_vfs_fat_sdspi_mount(mount_point, &host, &slot_config, &mount_config, &card);
|
||||
|
||||
if(ret != ESP_OK){
|
||||
if(ret == ESP_FAIL) ESP_LOGE(TAG, "Failed to mount filesystem.");
|
||||
else ESP_LOGE(TAG, "Failed to initialize the card (%s). ", esp_err_to_name(ret));
|
||||
if(ret == ESP_FAIL) ESP_LOGE(TAG, "Failed to mount filesystem."); else ESP_LOGE(TAG, "Failed to initialize the card (%s). ", esp_err_to_name(ret));
|
||||
spi_bus_free(host.slot);
|
||||
return;
|
||||
}
|
||||
|
||||
ESP_LOGI(TAG, "SD card initialized");
|
||||
|
||||
if(get_top_level_files() == ESP_OK) ESP_LOGI(TAG, "Found %d files in root directory", _file_count);
|
||||
else ESP_LOGW(TAG, "No files found in root directory");
|
||||
if(get_top_level_files() == ESP_OK) ESP_LOGI(TAG, "Found %d files in root directory", _file_count); else ESP_LOGW(TAG, "No files found in root directory");
|
||||
}
|
||||
|
||||
void print_sd_card_info(void){
|
||||
|
||||
Reference in New Issue
Block a user