add default role to system

This commit is contained in:
Terrence
2025-02-18 13:40:56 +08:00
parent 10a05db4a1
commit 898109b348
3 changed files with 4 additions and 3 deletions

View File

@@ -357,7 +357,7 @@ void Application::Start() {
board.SetPowerSaveMode(true);
Schedule([this]() {
auto display = Board::GetInstance().GetDisplay();
display->SetChatMessage("", "");
display->SetChatMessage("system", "");
SetDeviceState(kDeviceStateIdle);
});
});
@@ -670,6 +670,7 @@ void Application::SetDeviceState(DeviceState state) {
break;
case kDeviceStateConnecting:
display->SetStatus("连接中...");
display->SetChatMessage("system", "");
break;
case kDeviceStateListening:
display->SetStatus("聆听中...");

View File

@@ -112,7 +112,7 @@ private:
InitializeButtons();
display_->SetStatus("错误");
display_->SetEmotion("sad");
display_->SetChatMessage("", "Echo Base\n未连接");
display_->SetChatMessage("system", "Echo Base\n未连接");
while (1) {
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");

View File

@@ -160,7 +160,7 @@ private:
InitializeButtons();
display_->SetStatus("错误");
display_->SetEmotion("sad");
display_->SetChatMessage("", "Echo Base\n未连接");
display_->SetChatMessage("system", "Echo Base\n未连接");
while (1) {
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");