change - 校时指令修改

master
wenjy 9 months ago
parent 00aa52cdf2
commit de31124513

@ -920,7 +920,7 @@ namespace Ems.CollectService.Analysis
ushort num = 0;
try
{
byte[] SendBuffer = new byte[24];
byte[] SendBuffer = new byte[25];
SendBuffer[num] = pMessagePack.m_BeginChar;
num = (ushort)(num + 1);
SendBuffer[num] = pMessagePack.m_EnergyType;
@ -945,6 +945,7 @@ namespace Ems.CollectService.Analysis
0x00,
0x00,
0x00,
0x00,
HexStrTorbytes(currentTime.ToString("ss"))[0],
HexStrTorbytes(currentTime.ToString("mm"))[0],
HexStrTorbytes(currentTime.ToString("HH"))[0],
@ -954,7 +955,7 @@ namespace Ems.CollectService.Analysis
};
Array.Copy(timeBuffer, 0, SendBuffer, num, timeBuffer.Length);
num = (ushort)(num + 12);
num = (ushort)(num + 13);
pMessagePack.m_Verify = MsgUtil.CalculateVerify(SendBuffer, SendBuffer.Length - 1)[0];
SendBuffer[num] = pMessagePack.m_Verify;

Loading…
Cancel
Save