From 3aa8029b4050ef77c0d0fef26c0998aa5eb4d2fc Mon Sep 17 00:00:00 2001 From: thuannd88 Date: Tue, 17 Sep 2024 22:07:21 +0700 Subject: [PATCH] fix --- De70Cmdv2.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/De70Cmdv2.cs b/De70Cmdv2.cs index 24f5d95..820dda9 100644 --- a/De70Cmdv2.cs +++ b/De70Cmdv2.cs @@ -1586,10 +1586,11 @@ } public byte send_dat(byte[] buf, int size) { + //Debug.WriteLine(DE70_CMD.ByteArrayToString(buf, 0, size)); AppData.DeviceStatus.CDMStatus = (int)CDMStatusCode.NORMAL; - AppData.CDMSTATE.CDMStatus = "DE: OK"; - byte bResult = 0; + //AppData.CDMSTATE.CDMStatus = "DE: OK"; + byte bResult = Constants.E_NG; try { serialPort.Write(buf, 0, size); @@ -1618,7 +1619,7 @@ } // Implement serial communication send function - bResult= Constants.E_NG; + return bResult; }