1,UtsWrTextBytesExecutor 读取串口数据参数为空时函数返回异常
This commit is contained in:
@@ -73,6 +73,15 @@ Namespace UTSModule.Test.Command.UtsComPortCommand
|
||||
Return CommandReturn
|
||||
End If
|
||||
|
||||
'2024-05-20 当返回数据参数为空时直接返回错误
|
||||
If receiveData.Params.Count = 0 Then
|
||||
ApplicationLog.WriteFatalLog($"测试器异常情况,串口返回正常,参数为空")
|
||||
CommandReturn.ExecuteResultTipString = "测试器异常情况,串口返回正常,参数为空"
|
||||
CommandReturn.RecordValue = ""
|
||||
CommandReturn.ExecuteResult = False
|
||||
Return CommandReturn
|
||||
End If
|
||||
|
||||
If String.IsNullOrEmpty(_utsExpression) Then
|
||||
CommandReturn.RecordValue = receiveData.ParamListToString
|
||||
CommandReturn.ExecuteResult = True
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user