|
@@ -159,7 +159,7 @@ DWORD CSATDevices::WorkThread(LPVOID lpVoid)
|
|
|
printf("IsDevicesOffline\n");
|
|
|
#endif
|
|
|
if ( (GetTickCount64() - it->ulOfflineTime) > GLOBAL::g_stSATConfig.dwAdbTimeout ) {
|
|
|
- GLOBAL::WriteTextLog("移除设备->设备类型:%d, 设备名称:%s, 状态:%d", it->nType, it->strName.c_str(), it->nStatus);
|
|
|
+ //GLOBAL::WriteTextLog("移除设备->设备类型:%d, 设备名称:%s, 状态:%d", it->nType, it->strName.c_str(), it->nStatus);
|
|
|
// 移除设备(需要线程加锁);
|
|
|
it = s_vtDevices.erase(it);
|
|
|
} else {
|
|
@@ -168,13 +168,13 @@ DWORD CSATDevices::WorkThread(LPVOID lpVoid)
|
|
|
// offline只能reconnect才能重连;
|
|
|
std::string str = "adb reconnect offline";
|
|
|
WinExec(str.c_str(), SW_HIDE);
|
|
|
- GLOBAL::WriteTextLog("offline重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
+ //GLOBAL::WriteTextLog("offline重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
}
|
|
|
else if ( it->nStatus == SATDEV::Dropline ) {
|
|
|
std::string str = "adb connect ";
|
|
|
str.append(it->strName);
|
|
|
WinExec(str.c_str(), SW_HIDE);
|
|
|
- GLOBAL::WriteTextLog("dropline重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
+ //GLOBAL::WriteTextLog("dropline重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
}
|
|
|
// 等待adb重连完成;
|
|
|
Sleep(2500);
|
|
@@ -184,7 +184,7 @@ DWORD CSATDevices::WorkThread(LPVOID lpVoid)
|
|
|
// offline需要reconnect才能重连;
|
|
|
std::string str = "adb reconnect offline";
|
|
|
WinExec(str.c_str(), SW_HIDE);
|
|
|
- GLOBAL::WriteTextLog("usb重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
+ //GLOBAL::WriteTextLog("usb重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
// 等待adb启动;
|
|
|
Sleep(2500);
|
|
|
}
|
|
@@ -197,7 +197,7 @@ DWORD CSATDevices::WorkThread(LPVOID lpVoid)
|
|
|
// 重连所有;
|
|
|
ReConnectAllDevices();
|
|
|
// 重连后,break此次循环;
|
|
|
- GLOBAL::WriteTextLog("usb重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
+ //GLOBAL::WriteTextLog("usb重连->设备类型:%d, 设备名称:%s, 状态:%d, 命令:%s", it->nType, it->strName.c_str(), it->nStatus, str.c_str());
|
|
|
// 等待adb启动;
|
|
|
Sleep(3500);
|
|
|
// kill后,需要重新GetCurrentDevices查询;
|