feat: 配置板子网络时,更新动态mac
This commit is contained in:
@@ -380,7 +380,7 @@ public class DebuggerController : ControllerBase
|
||||
}
|
||||
|
||||
var rawData = dataResult.Value;
|
||||
logger.Debug($"rawData: {BitConverter.ToString(rawData)}");
|
||||
// logger.Debug($"rawData: {BitConverter.ToString(rawData)}");
|
||||
int depth = (int)config.captureDepth;
|
||||
int portDataLen = 4 * depth;
|
||||
int portNum = (int)config.totalPortNum;
|
||||
@@ -413,8 +413,7 @@ public class DebuggerController : ControllerBase
|
||||
}
|
||||
var channelBytes = new byte[4 * depth];
|
||||
Buffer.BlockCopy(channelUintArr, 0, channelBytes, 0, channelBytes.Length);
|
||||
channelBytes = Common.Number.ReverseBytes(channelBytes, 4).Value;
|
||||
logger.Debug($"{channel.name} HexData: {BitConverter.ToString(channelBytes)}");
|
||||
// logger.Debug($"{channel.name} HexData: {BitConverter.ToString(channelBytes)}");
|
||||
var base64 = Convert.ToBase64String(channelBytes);
|
||||
channelDataList.Add(new ChannelCaptureData { name = channel.name, data = base64 });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user