linux compat
This commit is contained in:
parent
e1640f4ad9
commit
8e868da692
@ -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)
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
@ -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()
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user