Browse Source

Z991239-5240 #comment 高拍仪 L3 调整

80374374 1 year ago
parent
commit
a848a2e5e7
1 changed files with 9 additions and 9 deletions
  1. 9 9
      Module/mod_HSPScanner/HSPScannerFSM.h

+ 9 - 9
Module/mod_HSPScanner/HSPScannerFSM.h

@@ -81,7 +81,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_StartPreview).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_StartPreview).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -98,7 +98,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_CancelPreview).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_CancelPreview).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -115,7 +115,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_ScanImage).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_ScanImage).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -132,7 +132,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_ScanImageEx).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_ScanImageEx).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -149,7 +149,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_ShowProperty).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_ShowProperty).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -166,7 +166,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_SetProperty).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_SetProperty).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -183,7 +183,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_SetWinPos).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_SetWinPos).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -200,7 +200,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_GetDevStatus).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_GetDevStatus).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}
@@ -217,7 +217,7 @@ public:
 	{
 		if(m_ctx != NULL)
 		{
-			DbgWithLink(LOG_LEVEL_ERROR, LOG_TYPE_USER).setAPI(HSPScannerService_LogCode_GetDevInfo).setResultCode("RTA2N0V")();
+			DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setAPI(HSPScannerService_LogCode_GetDevInfo).setResultCode("RTA2N0V")("Error_InvalidState");
 			m_ctx->Answer(Error_InvalidState, HSPScanner_UserErrorCode_FSM_INVALID);
 		}
 	}