fix(time): apply timezone before lcd startup

This commit is contained in:
chenjintao
2026-08-25 09:55:39 +08:00
parent ceb0780425
commit f33ad70c16
7 changed files with 57 additions and 5 deletions
@@ -28,6 +28,10 @@
#define CONFIG_TQ_BOOT_SOUND_FILE ""
#endif
#ifndef CONFIG_TQ_TIME_POSIX_TZ
#define CONFIG_TQ_TIME_POSIX_TZ "CST-8"
#endif
#ifndef CONFIG_TQ_MINI_PROGRAM_PROVISIONING_ENABLE
#define CONFIG_TQ_MINI_PROGRAM_PROVISIONING_ENABLE 0
#endif
@@ -76,6 +80,11 @@ esp_err_t control_plane_prepare_runtime_storage(void)
return domain_runtime_prepare_storage();
}
esp_err_t control_plane_prepare_wall_clock(void)
{
return domain_runtime_time_set_timezone(CONFIG_TQ_TIME_POSIX_TZ);
}
static void control_plane_wifi_set_keep_awake(bool keep_awake)
{
domain_runtime_behavior_set_keep_awake(keep_awake);