Bump to 1.8.5

This commit is contained in:
Terrence
2025-08-02 01:27:14 +08:00
parent cd23e0f155
commit d58d55cfe7
5 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
# CMakeLists in this exact order for cmake to work correctly # CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
set(PROJECT_VER "1.8.4") set(PROJECT_VER "1.8.5")
# Add this line to disable the specific warning # Add this line to disable the specific warning
add_compile_options(-Wno-missing-field-initializers) add_compile_options(-Wno-missing-field-initializers)

View File

@@ -504,9 +504,6 @@ void Application::Start() {
// Print heap stats // Print heap stats
SystemInfo::PrintHeapStats(); SystemInfo::PrintHeapStats();
// Enter the main event loop
MainEventLoop();
} }
void Application::OnClockTimer() { void Application::OnClockTimer() {

View File

@@ -41,6 +41,7 @@ public:
Application& operator=(const Application&) = delete; Application& operator=(const Application&) = delete;
void Start(); void Start();
void MainEventLoop();
DeviceState GetDeviceState() const { return device_state_; } DeviceState GetDeviceState() const { return device_state_; }
bool IsVoiceDetected() const { return audio_service_.IsVoiceDetected(); } bool IsVoiceDetected() const { return audio_service_.IsVoiceDetected(); }
void Schedule(std::function<void()> callback); void Schedule(std::function<void()> callback);
@@ -80,7 +81,6 @@ private:
int clock_ticks_ = 0; int clock_ticks_ = 0;
TaskHandle_t check_new_version_task_handle_ = nullptr; TaskHandle_t check_new_version_task_handle_ = nullptr;
void MainEventLoop();
void OnWakeWordDetected(); void OnWakeWordDetected();
void CheckNewVersion(Ota& ota); void CheckNewVersion(Ota& ota);
void ShowActivationCode(const std::string& code, const std::string& message); void ShowActivationCode(const std::string& code, const std::string& message);

View File

@@ -15,11 +15,11 @@ dependencies:
78/esp_lcd_nv3023: ~1.0.0 78/esp_lcd_nv3023: ~1.0.0
78/esp-wifi-connect: ~2.4.3 78/esp-wifi-connect: ~2.4.3
78/esp-opus-encoder: ~2.4.0 78/esp-opus-encoder: ~2.4.0
78/esp-ml307: ~3.2.4 78/esp-ml307: ~3.2.5
78/xiaozhi-fonts: ~1.3.2 78/xiaozhi-fonts: ~1.3.2
espressif/led_strip: ^2.5.5 espressif/led_strip: ^2.5.5
espressif/esp_codec_dev: ~1.3.6 espressif/esp_codec_dev: ~1.3.6
espressif/esp-sr: ~2.1.1 espressif/esp-sr: ~2.1.4
espressif/button: ~4.1.3 espressif/button: ~4.1.3
espressif/knob: ^1.0.0 espressif/knob: ^1.0.0
espressif/esp32-camera: ^2.0.15 espressif/esp32-camera: ^2.0.15

View File

@@ -25,5 +25,7 @@ extern "C" void app_main(void)
ESP_ERROR_CHECK(ret); ESP_ERROR_CHECK(ret);
// Launch the application // Launch the application
Application::GetInstance().Start(); auto& app = Application::GetInstance();
app.Start();
app.MainEventLoop();
} }