Rename config module to settings
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user