code optimize

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
2025-06-13 17:18:39 +02:00
parent 7e1d6b1691
commit 50898b94f4
2 changed files with 9 additions and 7 deletions

View File

@@ -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

View File

@@ -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