Commit 66647a37 by 郭峰

Merge branch 'feature-1007494' into 'release'

修改抓图失败ping结果

See merge request !76
parents b1eac755 dafbf01d
......@@ -436,7 +436,7 @@ void CameraHandle::sdkDevSnapSyn(XSDK_HANDLE hDevice, int nChannel){
qInfo() <<QString("SN(%1): 设备离线").arg(sSn);
QString ip=QString::fromUtf8(loginParam->sDevId);
bool is_ping=instace.pingAddress(ip);
qDebug() << sSn<<":ping 的结果"<<is_ping;
qInfo() << sSn<<":ping 的结果"<<is_ping;
if(is_ping){
deviceReboot();
......@@ -1395,6 +1395,7 @@ int CameraHandle::deviceReboot(){
qInfo() << sSn<<":重启相机失败"<<nRet;
return 0 ;
}
qInfo()<<QString("SN(%1): 重启相机成功").arg(sSn);
QString ip=QString::fromUtf8(loginParam->sDevId);
MainWindow::sp_this->clearOfflineCameraHandle(ip,loginParam->nDevPort);
return nRet;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment