From fc13ce94346b82109424859fbd08ab751ba51b8f Mon Sep 17 00:00:00 2001 From: rexlin Date: Wed, 23 Sep 2020 10:33:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=8A=B7=E5=94=AE=E5=BE=8C=E7=B5=82=E6=AD=A2?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0Echo=E6=B8=AC=E8=A9=A6=E9=80=A3=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- n5coredll/N5Core.cs | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/n5coredll/N5Core.cs b/n5coredll/N5Core.cs index 8c283fa..3c6c8c5 100644 --- a/n5coredll/N5Core.cs +++ b/n5coredll/N5Core.cs @@ -1085,16 +1085,13 @@ namespace n5coredll if (openSerialPort()) { - if (!isProcessingSale) + String echoResult = sendInnerLinkTestRequest(); + currResultJsonStr = null; + if (RequestResult.toReqResultFromJsonMsg(echoResult).Status != STATUS_SUCC) { - String echoResult = sendInnerLinkTestRequest(); - currResultJsonStr = null; - if (RequestResult.toReqResultFromJsonMsg(echoResult).Status != STATUS_SUCC) - { - Console.WriteLine("LinkTest failed!"); - ifProcessingAbort = false; - return RequestResult.createRespErrJson("requestAbort", "ABORT_RESP", ERR_STATUS_FAIL, ERR_CODE_ECHO, ERR_MSG_ECHO); - } + Console.WriteLine("LinkTest failed!"); + ifProcessingAbort = false; + return RequestResult.createRespErrJson("requestAbort", "ABORT_RESP", ERR_STATUS_FAIL, ERR_CODE_ECHO, ERR_MSG_ECHO); } Thread.Sleep(500); sendTime = 0;