forked from xiaozhi/xiaozhi-esp32
toggle and hold mode cannot work together
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
@@ -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() {
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
@@ -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 可见设备
|
||||||
|
|||||||
Reference in New Issue
Block a user