Skip to content
Snippets Groups Projects
Commit 4cd1a7d3 authored by q3k's avatar q3k
Browse files

main: mount /sd on startup

parent c535bf10
No related branches found
No related tags found
1 merge request!34SD card support
Pipeline #6003 passed
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include "st3m_fs.h" #include "st3m_fs.h"
#include "st3m_fs_flash.h" #include "st3m_fs_flash.h"
#include "st3m_fs_sd.h"
#include "st3m_mode.h" #include "st3m_mode.h"
#include "st3m_sys_data.h" #include "st3m_sys_data.h"
#include "st3m_tar.h" #include "st3m_tar.h"
...@@ -60,4 +61,9 @@ void flow3r_fs_init(void) { ...@@ -60,4 +61,9 @@ void flow3r_fs_init(void) {
ESP_LOGI(TAG, "No %s on flash, preparing sys directory...", sysflag); ESP_LOGI(TAG, "No %s on flash, preparing sys directory...", sysflag);
_extract_sys_data(); _extract_sys_data();
} }
esp_err_t ret = st3m_fs_sd_mount();
if (ret != ESP_OK) {
ESP_LOGW(TAG, "Failed to mount SD card: %s", esp_err_to_name(ret));
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment