forked from xiaozhi/xiaozhi-esp32
fix audio pm (#1004)
This commit is contained in:
@@ -269,8 +269,8 @@ void Display::SetTheme(const std::string& theme_name) {
|
||||
settings.SetString("theme", theme_name);
|
||||
}
|
||||
|
||||
void Display::ShowStandbyScreen(bool show) {
|
||||
if (show) {
|
||||
void Display::SetPowerSaveMode(bool on) {
|
||||
if (on) {
|
||||
SetChatMessage("system", "");
|
||||
SetEmotion("sleepy");
|
||||
} else {
|
||||
|
||||
@@ -30,7 +30,7 @@ public:
|
||||
virtual void SetTheme(const std::string& theme_name);
|
||||
virtual std::string GetTheme() { return current_theme_name_; }
|
||||
virtual void UpdateStatusBar(bool update_all = false);
|
||||
virtual void ShowStandbyScreen(bool show);
|
||||
virtual void SetPowerSaveMode(bool on);
|
||||
|
||||
inline int width() const { return width_; }
|
||||
inline int height() const { return height_; }
|
||||
|
||||
Reference in New Issue
Block a user