diff --git a/firmware/components/sys_status/CMakeLists.txt b/firmware/components/sys_status/CMakeLists.txt new file mode 100644 index 0000000..1a6f7f5 --- /dev/null +++ b/firmware/components/sys_status/CMakeLists.txt @@ -0,0 +1,8 @@ +idf_component_register( + SRCS + "src/sys_status.c" + INCLUDE_DIRS + "include" + REQUIRES +) + diff --git a/firmware/src/sys_status.h b/firmware/components/sys_status/include/sys_status.h similarity index 100% rename from firmware/src/sys_status.h rename to firmware/components/sys_status/include/sys_status.h diff --git a/firmware/src/sys_status.c b/firmware/components/sys_status/src/sys_status.c similarity index 99% rename from firmware/src/sys_status.c rename to firmware/components/sys_status/src/sys_status.c index 2f96234..abc1724 100644 --- a/firmware/src/sys_status.c +++ b/firmware/components/sys_status/src/sys_status.c @@ -1,8 +1,9 @@ -#include "sys_status.h" #include "freertos/FreeRTOS.h" #include "freertos/event_groups.h" #include "esp_check.h" +#include "sys_status.h" + static EventGroupHandle_t s_status_group = NULL; void sys_status_init(void) diff --git a/firmware/src/CMakeLists.txt b/firmware/src/CMakeLists.txt index ba6b19c..a00e16d 100644 --- a/firmware/src/CMakeLists.txt +++ b/firmware/src/CMakeLists.txt @@ -4,7 +4,6 @@ set(app_sources "net_influx.c" "net_mdns.c" "sen5x_app.c" - "sys_status.c" "wifi_mgr.c" )