fix(time): apply timezone before lcd startup
This commit is contained in:
@@ -31,6 +31,7 @@ static const char *TAG = "app_comp_boot";
|
||||
typedef enum {
|
||||
APP_COMPOSITION_BOOT_STAGE_POWER_HOLD = 1,
|
||||
APP_COMPOSITION_BOOT_STAGE_STORAGE_PREPARE,
|
||||
APP_COMPOSITION_BOOT_STAGE_WALL_CLOCK,
|
||||
APP_COMPOSITION_BOOT_STAGE_AUDIO_INIT,
|
||||
APP_COMPOSITION_BOOT_STAGE_BOOT_SOUND,
|
||||
APP_COMPOSITION_BOOT_STAGE_AUDIO_READY,
|
||||
@@ -83,6 +84,19 @@ static esp_err_t app_composition_run_plan_a_boot_sequence(void)
|
||||
return err;
|
||||
}
|
||||
|
||||
app_composition_log_stage(APP_COMPOSITION_BOOT_STAGE_WALL_CLOCK,
|
||||
"wall_clock",
|
||||
"control_plane_prepare_wall_clock");
|
||||
esp_err_t wall_clock_err = control_plane_prepare_wall_clock();
|
||||
app_composition_log_stage_result(APP_COMPOSITION_BOOT_STAGE_WALL_CLOCK,
|
||||
"wall_clock",
|
||||
wall_clock_err);
|
||||
if (wall_clock_err != ESP_OK) {
|
||||
ESP_LOGW(TAG,
|
||||
"Local time zone setup failed, continue boot: %s",
|
||||
esp_err_to_name(wall_clock_err));
|
||||
}
|
||||
|
||||
esp_err_t battery_guard_err = control_plane_battery_apply_boot_guard();
|
||||
if (battery_guard_err != ESP_OK &&
|
||||
battery_guard_err != ESP_ERR_NOT_SUPPORTED) {
|
||||
|
||||
Reference in New Issue
Block a user