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