forked from xiaozhi/xiaozhi-esp32
reboot => recheck
This commit is contained in:
@@ -228,7 +228,7 @@ void Application::PlayLocalFile(const char* data, size_t size) {
|
|||||||
void Application::ToggleChatState() {
|
void Application::ToggleChatState() {
|
||||||
Schedule([this]() {
|
Schedule([this]() {
|
||||||
if (device_state_ == kDeviceStateActivating) {
|
if (device_state_ == kDeviceStateActivating) {
|
||||||
Reboot();
|
SetDeviceState(kDeviceStateIdle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -258,7 +258,7 @@ void Application::ToggleChatState() {
|
|||||||
void Application::StartListening() {
|
void Application::StartListening() {
|
||||||
Schedule([this]() {
|
Schedule([this]() {
|
||||||
if (device_state_ == kDeviceStateActivating) {
|
if (device_state_ == kDeviceStateActivating) {
|
||||||
Reboot();
|
SetDeviceState(kDeviceStateIdle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user