forked from xiaozhi/xiaozhi-esp32
add default role to system
This commit is contained in:
@@ -357,7 +357,7 @@ void Application::Start() {
|
|||||||
board.SetPowerSaveMode(true);
|
board.SetPowerSaveMode(true);
|
||||||
Schedule([this]() {
|
Schedule([this]() {
|
||||||
auto display = Board::GetInstance().GetDisplay();
|
auto display = Board::GetInstance().GetDisplay();
|
||||||
display->SetChatMessage("", "");
|
display->SetChatMessage("system", "");
|
||||||
SetDeviceState(kDeviceStateIdle);
|
SetDeviceState(kDeviceStateIdle);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -670,6 +670,7 @@ void Application::SetDeviceState(DeviceState state) {
|
|||||||
break;
|
break;
|
||||||
case kDeviceStateConnecting:
|
case kDeviceStateConnecting:
|
||||||
display->SetStatus("连接中...");
|
display->SetStatus("连接中...");
|
||||||
|
display->SetChatMessage("system", "");
|
||||||
break;
|
break;
|
||||||
case kDeviceStateListening:
|
case kDeviceStateListening:
|
||||||
display->SetStatus("聆听中...");
|
display->SetStatus("聆听中...");
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ private:
|
|||||||
InitializeButtons();
|
InitializeButtons();
|
||||||
display_->SetStatus("错误");
|
display_->SetStatus("错误");
|
||||||
display_->SetEmotion("sad");
|
display_->SetEmotion("sad");
|
||||||
display_->SetChatMessage("", "Echo Base\n未连接");
|
display_->SetChatMessage("system", "Echo Base\n未连接");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");
|
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ private:
|
|||||||
InitializeButtons();
|
InitializeButtons();
|
||||||
display_->SetStatus("错误");
|
display_->SetStatus("错误");
|
||||||
display_->SetEmotion("sad");
|
display_->SetEmotion("sad");
|
||||||
display_->SetChatMessage("", "Echo Base\n未连接");
|
display_->SetChatMessage("system", "Echo Base\n未连接");
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");
|
ESP_LOGE(TAG, "Atomic Echo Base is disconnected");
|
||||||
|
|||||||
Reference in New Issue
Block a user