forked from xiaozhi/xiaozhi-esp32
fix: crash if GIF version is 87a (#1194)
* fix: no tool call reply after self.reboot * fix: 87a gif error * append display info to board info
This commit is contained in:
@@ -137,13 +137,11 @@ void McpServer::AddUserOnlyTools() {
|
||||
AddUserOnlyTool("self.reboot", "Reboot the system",
|
||||
PropertyList(),
|
||||
[this](const PropertyList& properties) -> ReturnValue {
|
||||
auto& app = Application::GetInstance();
|
||||
app.Schedule([]() {
|
||||
std::thread([this]() {
|
||||
ESP_LOGW(TAG, "User requested reboot");
|
||||
vTaskDelay(pdMS_TO_TICKS(1000));
|
||||
auto& app = Application::GetInstance();
|
||||
app.Reboot();
|
||||
});
|
||||
Application::GetInstance().Reboot();
|
||||
}).detach();
|
||||
return true;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user