feat: default to flash non assets

This commit is contained in:
Terrence
2025-09-10 01:02:23 +08:00
parent d04b08133f
commit bce662d135
4 changed files with 99 additions and 56 deletions

View File

@@ -21,11 +21,10 @@ struct mmap_assets_table {
Assets::Assets(std::string default_assets_url) {
// If the default_assets_url is not a http url, add the prefix
if (default_assets_url.find("http") == 0) {
default_assets_url_ = default_assets_url;
} else {
default_assets_url_ = CONFIG_DEFAULT_ASSETS_URL_PREFIX + default_assets_url;
ESP_LOGE(TAG, "The default assets url is not a http url: %s", default_assets_url.c_str());
}
// Initialize the partition