增加重启延时控制

streaming
Matthew 4 months ago
parent b7bfefe3e6
commit 7adebb3019

@ -1125,7 +1125,7 @@ bool CPhoneDevice::InstallAPP(const std::string& path, unsigned int delayedTime)
return true;
}
bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reason)
bool CPhoneDevice::Reboot(int resetType, bool manually, const std::string& reason, uint32_t timeout/* = 1000*/)
{
if (resetType == REBOOT_TYPE_DEVICE)
{

@ -219,7 +219,7 @@ public:
virtual bool UpdateSchedules();
virtual bool QuerySystemProperties(map<string, string>& properties);
virtual bool InstallAPP(const std::string& path, unsigned int delayedTime);
virtual bool Reboot(int resetType, bool manually, const std::string& reason);
virtual bool Reboot(int resetType, bool manually, const std::string& reason, uint32_t timeout = 1000);
virtual bool EnableGPS(bool enabled);
virtual float QueryBattaryVoltage(int timesForAvg, bool* isCharging);
virtual bool RequestPosition();

Loading…
Cancel
Save