Kaynağa Gözat

1、修正Read指令。

sat23 3 yıl önce
ebeveyn
işleme
cd7ca13bb4

+ 2 - 2
SCBC Factory Tools/IO/SerialCMD.cs

@@ -2401,7 +2401,7 @@ namespace MOKA_Factory_Tools
         /// <returns>注意返回值为:md5xxxxx</returns>
         public static bool ReadACASKeyData(SerialPort Comport, out byte[] result, out byte[] data, out string error, int waitTime)
         {
-            if (Sendcmd(Comport, new byte[] { 0xAA }, new byte[] { 0xFC }, new byte[] { 0x03, 0x08 }, true, false, out result, out data, out error, waitTime))
+            if (Sendcmd(Comport, new byte[] { 0xAA }, new byte[] { 0xFC }, new byte[] { 0x03, 0x08 }, true, true, out result, out data, out error, waitTime))
             {
                 if (data[0] == 0x04 && data[1] == 0x08)
                 {
@@ -2460,7 +2460,7 @@ namespace MOKA_Factory_Tools
         /// <returns>注意返回值为:md5xxxxx</returns>
         public static bool ReadACASKeyTool(SerialPort Comport, out byte[] result, out byte[] data, out string error, int waitTime)
         {
-            if (Sendcmd(Comport, new byte[] { 0xAA }, new byte[] { 0xFC }, new byte[] { 0x03, 0x0A }, true, false, out result, out data, out error, waitTime))
+            if (Sendcmd(Comport, new byte[] { 0xAA }, new byte[] { 0xFC }, new byte[] { 0x03, 0x0A }, true, true, out result, out data, out error, waitTime))
             {
                 if (data[0] == 0x04 && data[1] == 0x0A)
                 {

+ 2 - 2
SCBC Factory Tools/Views/OperationPanel.cs

@@ -3887,9 +3887,9 @@ namespace MOKA_Factory_Tools
                     {
                         SetsuccessStatus(m_checkACASKey);
                         Log.WriteInfoLog("Read ACAS Key Data...");
-                        if (readCheckNow.ACASIDReadcheck ? SerialCMD.ReadACASKeyData(TVPort, out result, out data, out error, SerailDelay) : true)
+                        if (readCheckNow.ACASKeyReadcheck ? SerialCMD.ReadACASKeyData(TVPort, out result, out data, out error, SerailDelay) : true)
                         {
-                            if (readCheckNow.ACASIDReadcheck)
+                            if (readCheckNow.ACASKeyReadcheck)
                             {
                                 if (CommonMethod.CompareMD5(ACASKeyData, data))
                                 {