linux compat

This commit is contained in:
Marc Pasteur 2026-02-26 23:20:19 +01:00
parent e1640f4ad9
commit 8e868da692
4 changed files with 13 additions and 2 deletions

View File

@ -10,6 +10,7 @@ list(APPEND EXTRA_COMPONENT_DIRS
../../stateManagement ../../stateManagement
../../eventsManager ../../eventsManager
../../RemindMe ../../RemindMe
../../washingMachineState
) )
idf_build_set_property(COMPILE_DEFINITIONS "NO_DEBUG_STORAGE" APPEND) idf_build_set_property(COMPILE_DEFINITIONS "NO_DEBUG_STORAGE" APPEND)

View File

@ -20,7 +20,7 @@ idf_component_register(SRCS
"../../include" "../../include"
"../mock" "../mock"
WHOLE_ARCHIVE WHOLE_ARCHIVE
REQUIRES lvgl meteofrance RemindMe) REQUIRES lvgl meteofrance RemindMe washingMachineState)
message("Including SDL2 support") message("Including SDL2 support")
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)

View File

@ -1,3 +1,9 @@
if(${IDF_TARGET} STREQUAL "esp32p4")
idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c
INCLUDE_DIRS "include" INCLUDE_DIRS "include"
REQUIRES mqtt esp_netif meteofrance audio) REQUIRES mqtt esp_netif meteofrance audio)
else()
idf_component_register(SRCS "obtain_time.c" "eventsManager.c" obtain_time.c
INCLUDE_DIRS "include"
REQUIRES mqtt esp_netif meteofrance)
endif()

View File

@ -6,7 +6,9 @@
#include "obtain_time.h" #include "obtain_time.h"
#include <time.h> #include <time.h>
#include "meteofrance.h" #include "meteofrance.h"
#if CONFIG_IDF_TARGET_ESP32P4
#include "audio.h" #include "audio.h"
#endif
EventGroupHandle_t domotic_event_group; EventGroupHandle_t domotic_event_group;
QueueHandle_t ihm_queue; QueueHandle_t ihm_queue;
@ -207,7 +209,9 @@ void send_event(domo_events evt, void* pDatas) {
} }
case EVT_FIN_MACHINE:{ case EVT_FIN_MACHINE:{
#if CONFIG_IDF_TARGET_ESP32P4
playSound(); playSound();
#endif
free(ihmEvt); // rien à envoyer à l'IHM free(ihmEvt); // rien à envoyer à l'IHM
ihmEvt = NULL; ihmEvt = NULL;
break; break;