diff --git a/CMakeLists.txt b/CMakeLists.txt index bfe084e..bb318e8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,6 +121,7 @@ set(DEVICE "esp32p4") # --- Nom final du binaire --- set(OTA_BIN_NAME "${PROJECT_NAME}-v${FW_VERSION}.bin") set(BUILD_BIN "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.bin") +set(BUILD_ELF "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.elf") message(STATUS "Firmware version: ${FW_VERSION}") @@ -130,6 +131,9 @@ add_custom_target(ota_push ALL COMMAND ${CMAKE_COMMAND} -E copy ${BUILD_BIN} ${OTA_DIR}/${OTA_BIN_NAME} + COMMAND ${CMAKE_COMMAND} -E copy + ${BUILD_ELF} + ${OTA_DIR}/latest.elf COMMENT "📦 Copy firmware to OTA server directory" DEPENDS app ) diff --git a/components/domotic_display/ihm_gateway.c b/components/domotic_display/ihm_gateway.c index 5c53d8b..e1f5cd6 100644 --- a/components/domotic_display/ihm_gateway.c +++ b/components/domotic_display/ihm_gateway.c @@ -35,10 +35,11 @@ void ihm_gateway_post_event(xIHMEvent_t *evt) { extern lv_subject_t wifiStatus; +static xIHMEvent_t *evt = NULL; + void ihm_gateway_process_queue(void) { if (!xIHMEventQueue) return; - xIHMEvent_t *evt = NULL; #if CONFIG_IDF_TARGET_LINUX while (xQueueReceive(xIHMEventQueue, &evt, pdMS_TO_TICKS(0)) == pdTRUE) diff --git a/main/index.html b/main/index.html index 9daf545..3533184 100644 --- a/main/index.html +++ b/main/index.html @@ -73,8 +73,8 @@

Developed by Mark

How to save and Download crash dump



-

- +

+ diff --git a/main/main.c b/main/main.c index e14e879..b284fa8 100644 --- a/main/main.c +++ b/main/main.c @@ -1077,8 +1077,7 @@ void app_main(void) esp_ota_mark_app_valid_cancel_rollback(); - - + start_webserver(); } void boucleMeteo()