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:
Xiaoxia
2025-09-13 16:53:10 +08:00
committed by GitHub
parent d0ba3a923c
commit ae40f72a39
4 changed files with 34 additions and 16 deletions

View File

@@ -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;
});