From 689d51b463b5bd59dbdc883fbadbff74bef7282d Mon Sep 17 00:00:00 2001 From: Marc Pasteur Date: Fri, 6 Feb 2026 19:05:17 +0100 Subject: [PATCH] plus propre --- components/domotic_display/idf_component.yml | 2 +- components/domotic_display/ihm.c | 8 ++--- components/eventsManager/CMakeLists.txt | 2 +- sdkconfig.defaults.linux | 36 ++++++++++++++++++++ 4 files changed, 42 insertions(+), 6 deletions(-) create mode 100644 sdkconfig.defaults.linux diff --git a/components/domotic_display/idf_component.yml b/components/domotic_display/idf_component.yml index 8387618..be75f3b 100644 --- a/components/domotic_display/idf_component.yml +++ b/components/domotic_display/idf_component.yml @@ -24,5 +24,5 @@ dependencies: version: 9.4.0 espressif/esp_lcd_qemu_rgb: rules: - - if: target in ["esp32p4","esp32, "esp32s3"] + - if: target in ["esp32, "esp32s3"] version: ^1 \ No newline at end of file diff --git a/components/domotic_display/ihm.c b/components/domotic_display/ihm.c index 1db9884..8741705 100644 --- a/components/domotic_display/ihm.c +++ b/components/domotic_display/ihm.c @@ -1129,17 +1129,17 @@ static void time_observer_cb(lv_observer_t *observer, lv_subject_t *subject) struct tm *dateHeure = (struct tm *)lv_subject_get_pointer(subject); char buff[13]; - snprintf(buff, 8, "%02" LV_PRIu32 "/", dateHeure->tm_mday); + snprintf(buff, 8, "%02" LV_PRIu32 "/", (uint32_t)dateHeure->tm_mday); ESP_LOGE(TAG, "%s", buff); lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff); - snprintf(buff, 4, "%02" LV_PRIu32, (int)((dateHeure->tm_mon) + 1)); + snprintf(buff, 4, "%02" LV_PRIu32, (uint32_t)((dateHeure->tm_mon) + 1)); lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff); lv_spangroup_refresh(spangroup); spangroup = lv_obj_find_by_name(dateTimeObj, "time"); - snprintf(buff,sizeof(buff), "%02" LV_PRId32, dateHeure->tm_hour); + snprintf(buff,sizeof(buff), "%02" LV_PRId32, (uint32_t)dateHeure->tm_hour); lv_span_set_text(lv_spangroup_get_child(spangroup, 0), buff); - snprintf(buff,sizeof(buff), ":%02" LV_PRId32, dateHeure->tm_min); + snprintf(buff,sizeof(buff), ":%02" LV_PRId32, (uint32_t)dateHeure->tm_min); lv_span_set_text(lv_spangroup_get_child(spangroup, 1), buff); lv_spangroup_refresh(spangroup); diff --git a/components/eventsManager/CMakeLists.txt b/components/eventsManager/CMakeLists.txt index 3c964d0..fd14eeb 100644 --- a/components/eventsManager/CMakeLists.txt +++ b/components/eventsManager/CMakeLists.txt @@ -1,3 +1,3 @@ idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c INCLUDE_DIRS "include" - REQUIRES mqtt) + REQUIRES mqtt esp_netif) diff --git a/sdkconfig.defaults.linux b/sdkconfig.defaults.linux new file mode 100644 index 0000000..94f94d5 --- /dev/null +++ b/sdkconfig.defaults.linux @@ -0,0 +1,36 @@ +# This file was generated using idf.py save-defconfig. It can be edited manually. +# Espressif IoT Development Framework (ESP-IDF) 5.5.2 Project Minimal Configuration +# +CONFIG_IDF_TARGET="linux" +CONFIG_PARTITION_TABLE_CUSTOM=y +CONFIG_COMPILER_OPTIMIZATION_SIZE=y +CONFIG_ESP_SYSTEM_PANIC_PRINT_HALT=y +CONFIG_FATFS_LFN_HEAP=y +CONFIG_FREERTOS_HZ=1000 +CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y +CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y +CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y +CONFIG_VFS_MAX_COUNT=15 +CONFIG_LV_USE_CLIB_MALLOC=y +CONFIG_LV_USE_CLIB_STRING=y +CONFIG_LV_USE_CLIB_SPRINTF=y +CONFIG_LV_DEF_REFR_PERIOD=10 +CONFIG_LV_USE_DRAW_SW_COMPLEX_GRADIENTS=y +CONFIG_LV_USE_LOG=y +CONFIG_LV_LOG_PRINTF=y +CONFIG_LV_USE_OBJ_ID=y +CONFIG_LV_USE_OBJ_NAME=y +CONFIG_LV_ATTRIBUTE_FAST_MEM_USE_IRAM=y +CONFIG_LV_USE_PRIVATE_API=y +CONFIG_LV_FONT_MONTSERRAT_40=y +CONFIG_LV_USE_FS_STDIO=y +CONFIG_LV_FS_STDIO_LETTER=65 +CONFIG_LV_USE_LODEPNG=y +CONFIG_LV_USE_SDL=y +CONFIG_LV_BUILD_EXAMPLES=n +CONFIG_IDF_EXPERIMENTAL_FEATURES=y + +CONFIG_ESP_MAIN_TASK_STACK_SIZE=12288 +CONFIG_LV_BUILD_DEMOS=n +CONFIG_LV_COLOR_DEPTH_32=y +CONFIG_LV_COLOR_DEPTH=32