临时移除自动重启设备

streaming
Matthew 4 months ago
parent 5a4840dcbf
commit a98dc5126c

@ -1157,10 +1157,14 @@ bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reaso
return false;
}
}
std::thread t([]()
std::thread t([manually, timeout]()
{
XYLOG(XYLOG_SEVERITY_WARNING, "Recv REBOOT command Manually=%d", manually ? 1 : 0);
std::this_thread::sleep_for(std::chrono::milliseconds(timeout));
if (manually)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
GpioControl::reboot();
}
});
t.detach();
}

Loading…
Cancel
Save