+ 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:
Timo Niemann
2026-07-01 13:03:58 +02:00
parent 229d828271
commit 4e8282a64b
10 changed files with 358 additions and 80 deletions
+2 -4
View File
@@ -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){