toggle and hold mode cannot work together

This commit is contained in:
Terrence
2025-01-26 12:34:42 +08:00
parent 3816f7eb57
commit ce26b8d3a1
4 changed files with 0 additions and 19 deletions

View File

@@ -105,12 +105,6 @@ private:
} }
app.ToggleChatState(); app.ToggleChatState();
}); });
boot_button_.OnPressDown([this]() {
Application::GetInstance().StartListening();
});
boot_button_.OnPressUp([this]() {
Application::GetInstance().StopListening();
});
} }
void InitializeSH8601Display() { void InitializeSH8601Display() {

View File

@@ -60,12 +60,6 @@ private:
} }
app.ToggleChatState(); app.ToggleChatState();
}); });
boot_button_.OnPressDown([this]() {
Application::GetInstance().StartListening();
});
boot_button_.OnPressUp([this]() {
Application::GetInstance().StopListening();
});
} }
void InitializeSt7789Display() { void InitializeSt7789Display() {

View File

@@ -78,7 +78,6 @@ private:
if (app.GetDeviceState() == kDeviceStateStarting && !WifiStation::GetInstance().IsConnected()) { if (app.GetDeviceState() == kDeviceStateStarting && !WifiStation::GetInstance().IsConnected()) {
ResetWifiConfiguration(); ResetWifiConfiguration();
} }
app.ToggleChatState();
}); });
boot_button_.OnPressDown([this]() { boot_button_.OnPressDown([this]() {
Application::GetInstance().StartListening(); Application::GetInstance().StartListening();

View File

@@ -126,12 +126,6 @@ private:
} }
app.ToggleChatState(); app.ToggleChatState();
}); });
boot_button_.OnPressDown([this]() {
Application::GetInstance().StartListening();
});
boot_button_.OnPressUp([this]() {
Application::GetInstance().StopListening();
});
} }
// 物联网初始化,添加对 AI 可见设备 // 物联网初始化,添加对 AI 可见设备