code optimize
Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
14
.github/workflows/esp32_build.yaml
vendored
14
.github/workflows/esp32_build.yaml
vendored
@@ -40,14 +40,16 @@ jobs:
|
|||||||
esp_idf_version: ${{ matrix.idf_ver }}
|
esp_idf_version: ${{ matrix.idf_ver }}
|
||||||
target: ${{ matrix.idf_target }}
|
target: ${{ matrix.idf_target }}
|
||||||
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build
|
command: idf.py -DSDKCONFIG_DEFAULTS="sdkconfig.defaults;sdkconfig.release" build
|
||||||
|
- name: Prepare binary files
|
||||||
|
run: |
|
||||||
|
mkdir -p build-release
|
||||||
|
cp build/flasher_args.json build-release/
|
||||||
|
cp build/*.bin build-release/
|
||||||
|
cp build/bootloader/*.bin build-release/
|
||||||
|
cp build/partition_table/*.bin build-release/
|
||||||
- name: Archive build output artifacts
|
- name: Archive build output artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: lighthouses-${{ matrix.idf_target }}-${{ matrix.idf_ver }}
|
name: lighthouses-${{ matrix.idf_target }}-${{ matrix.idf_ver }}
|
||||||
path: |
|
path: |
|
||||||
build/flasher_args.json
|
build-release/*.*
|
||||||
build/storage.bin
|
|
||||||
build/ota_data_initial.bin
|
|
||||||
build/lighthouses.bin
|
|
||||||
build/bootloader/bootloader.bin
|
|
||||||
build/partition_table/partition-table.bin
|
|
||||||
|
@@ -14,7 +14,7 @@ static char s_current_filename[256] = {0}; // Buffer to store the current filena
|
|||||||
|
|
||||||
esp_err_t storage_init(void)
|
esp_err_t storage_init(void)
|
||||||
{
|
{
|
||||||
ESP_LOGI(TAG, "Initializing SPIFFS");
|
ESP_LOGI(TAG, "Initializing Storage");
|
||||||
|
|
||||||
esp_vfs_spiffs_conf_t conf = {
|
esp_vfs_spiffs_conf_t conf = {
|
||||||
.base_path = "/storage", // Path where the filesystem will be mounted
|
.base_path = "/storage", // Path where the filesystem will be mounted
|
||||||
|
Reference in New Issue
Block a user