fix(time): apply timezone before lcd startup
This commit is contained in:
@@ -145,6 +145,9 @@ esp_err_t control_plane_battery_apply_boot_guard(void);
|
||||
*/
|
||||
esp_err_t control_plane_prepare_runtime_storage(void);
|
||||
|
||||
/** Apply the configured local time zone before any local time is rendered. */
|
||||
esp_err_t control_plane_prepare_wall_clock(void);
|
||||
|
||||
/**
|
||||
* @brief Start the control-plane owned light-standby coordinator.
|
||||
*
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user