code clean up and persistence for beacon last state

Signed-off-by: Peter Siegmund <mars3142@users.noreply.github.com>
This commit is contained in:
2025-08-29 16:01:25 +02:00
parent 8bf9e8f462
commit 13b009c0db
12 changed files with 139 additions and 88 deletions

View File

@@ -7,4 +7,5 @@ idf_component_register(SRCS
esp_driver_gpio
esp_driver_gptimer
esp_driver_ledc
persistence
)

View File

@@ -6,6 +6,7 @@
#include "freertos/task.h"
#include "led_strip.h"
#include "light.h"
#include "persistence.h"
#include "sdkconfig.h"
#include "semaphore.h"
@@ -84,6 +85,8 @@ esp_err_t beacon_start(void)
{
ESP_LOGI(TAG, "GPTimer started.");
}
ESP_LOGD(TAG, "Beacon started.");
return ret;
}
@@ -110,6 +113,7 @@ esp_err_t beacon_stop(void)
{
ESP_LOGE(TAG, "Failed to enable gptimer: %s", esp_err_to_name(ret));
}
return ret;
}