Explorar o código

对unauthorized状态添加界面显示 ;

scbc.sat2 %!s(int64=5) %!d(string=hai) anos
pai
achega
5ca8b2ef1f
Modificáronse 2 ficheiros con 6 adicións e 0 borrados
  1. 2 0
      SATHelper/SATHelper/DlgService.cpp
  2. 4 0
      SATHelper/SATHelper/UB530View.cpp

+ 2 - 0
SATHelper/SATHelper/DlgService.cpp

@@ -84,6 +84,8 @@ BOOL CDlgService::OnInitDialog()
 						p->m_listDevices.SetItemText(nIndex, 3, "离线");
 					else if ( it->nStatus == 2 )
 						p->m_listDevices.SetItemText(nIndex, 3, "掉线");
+					else if (it->nStatus == 3)
+						p->m_listDevices.SetItemText(nIndex, 3, "未认证");
 
 					if (it->nUsageState == 0)
 						p->m_listDevices.SetItemText(nIndex, 4, "空闲");

+ 4 - 0
SATHelper/SATHelper/UB530View.cpp

@@ -371,7 +371,11 @@ BOOL CUB530View::HwInitialize()
 		if ( qr != QCAP_RS_SUCCESSFUL )
 		{
 			OutputDebugString("初始化UB530失败\n");
+			return FALSE;
 		}
+
+		// 设置成BULK模式;
+		QCAP_SET_DEVICE_CUSTOM_PROPERTY(m_hVideoDevice, 10, 2); // 0 -> DEFAULT (ISO), 1 -> ISO, 2 -> BULK
 	}
 
 	if (m_hVideoDevice == NULL) {