Rename config module to settings

This commit is contained in:
2023-05-15 17:39:29 +01:00
parent cee2e368dc
commit 3ab6c20e58
7 changed files with 56 additions and 53 deletions

View File

@@ -5,7 +5,7 @@
#include "time_manager.h"
#include "config.h"
#include "settings.h"
#include <time.h>
@@ -17,11 +17,11 @@ static void handle_timezone_update(const char *timezone)
void time_manager_init(void)
{
char timezone[CONFIG_MAX_VALUE_SIZE];
(void)config_get_timezone(timezone, CONFIG_MAX_VALUE_SIZE);
char timezone[SETTINGS_MAX_VALUE_SIZE];
(void)settings_get_timezone(timezone, sizeof(timezone));
handle_timezone_update(timezone);
config_add_timezone_callback(&handle_timezone_update);
settings_add_timezone_callback(&handle_timezone_update);
}
Time get_time(void)