fix: recover interrupted conversations on boot
This commit is contained in:
@@ -354,6 +354,11 @@ static void application_boot(void)
|
||||
volc_hal_display_set_content(global_display, VOLC_DISPLAY_OBJ_STATUS, VOLC_DISPLAY_TEXT, message);
|
||||
return;
|
||||
}
|
||||
ret = platform_recover_pending_conversation();
|
||||
if (ret != ESP_OK) {
|
||||
ESP_LOGW(TAG, "Cannot close the conversation interrupted by the previous restart: %s",
|
||||
esp_err_to_name(ret));
|
||||
}
|
||||
hal_level_init();
|
||||
ESP_LOGI(TAG, "Startup stack headroom after audio: %u bytes", (unsigned)uxTaskGetStackHighWaterMark(NULL));
|
||||
xTaskCreate(&Task, "aios_task", 8192, NULL, 5, NULL);
|
||||
|
||||
Reference in New Issue
Block a user