From 548b85477711a4b049575bae741bb78a15408e37 Mon Sep 17 00:00:00 2001 From: Terrence Date: Fri, 11 Oct 2024 00:59:03 +0800 Subject: [PATCH] bump to 0.3.2 --- CMakeLists.txt | 2 +- main/Application.cc | 8 ++++++++ main/idf_component.yml | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 78e32c7d..10d58f03 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.16) -set(PROJECT_VER "0.3.1") +set(PROJECT_VER "0.3.2") include($ENV{IDF_PATH}/tools/cmake/project.cmake) project(xiaozhi) diff --git a/main/Application.cc b/main/Application.cc index 69e1d5fd..8ba4d0db 100644 --- a/main/Application.cc +++ b/main/Application.cc @@ -154,6 +154,14 @@ void Application::Start() { ESP_LOGI(TAG, "ML307 IMEI: %s", ml307_at_modem_.GetImei().c_str()); ESP_LOGI(TAG, "ML307 ICCID: %s", ml307_at_modem_.GetIccid().c_str()); + + // If low power, the material ready event will be triggered by the modem because of a reset + ml307_at_modem_.OnMaterialReady([this]() { + ESP_LOGI(TAG, "ML307 material ready"); + Schedule([this]() { + SetChatState(kChatStateIdle); + }); + }); #else // Try to connect to WiFi, if failed, launch the WiFi configuration AP auto& wifi_station = WifiStation::GetInstance(); diff --git a/main/idf_component.yml b/main/idf_component.yml index c4d9d293..7b59e457 100644 --- a/main/idf_component.yml +++ b/main/idf_component.yml @@ -3,7 +3,7 @@ dependencies: 78/esp-builtin-led: "^1.0.2" 78/esp-wifi-connect: "^1.1.0" 78/esp-opus-encoder: "^1.0.2" - 78/esp-ml307: "^1.2.0" + 78/esp-ml307: "^1.2.1" espressif/esp-sr: "^1.9.0" espressif/button: "^3.3.1" lvgl/lvgl: "^8.4.0"